$_callable
$_callable : callable
Callable
Event Condition Decorator
Use this decorator to allow your event listener to only
be invoked if the if
and/or unless
conditions pass.
canTrigger(\Cake\Event\Event $event) : boolean
Checks if the event is triggered for this listener.
\Cake\Event\Event | $event | Event object. |
_evaluateCondition(string $condition, \Cake\Event\Event $event) : boolean
Evaluates the filter conditions
string | $condition | Condition type |
\Cake\Event\Event | $event | Event object |