Skip to content

Commit

Permalink
Rename constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 14, 2025
1 parent 9d3ff34 commit 6101d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/Behavior/TrashBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
class TrashBehavior extends Behavior
{
public const DELETE_OPTION_NAME = 'trash';
public const AFTER_DELETE_EVENT_OPTION = 'trash';

/**
* Default configuration.
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6101d78

Please # to comment.