From 6101d787a9ab2fcab6de70672504948d01fe4206 Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 14 Jan 2025 12:58:04 +0530 Subject: [PATCH] Rename constant --- src/Model/Behavior/TrashBehavior.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Behavior/TrashBehavior.php b/src/Model/Behavior/TrashBehavior.php index 098cb16..6a58019 100644 --- a/src/Model/Behavior/TrashBehavior.php +++ b/src/Model/Behavior/TrashBehavior.php @@ -27,7 +27,7 @@ */ class TrashBehavior extends Behavior { - public const DELETE_OPTION_NAME = 'trash'; + public const AFTER_DELETE_EVENT_OPTION = 'trash'; /** * Default configuration. @@ -120,7 +120,7 @@ public function beforeDelete(EventInterface $event, EntityInterface $entity, Arr return; } - $options[self::DELETE_OPTION_NAME] = true; + $options[static::AFTER_DELETE_EVENT_OPTION] = true; /** @var \Cake\ORM\Table $table */ $table = $event->getSubject();