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();