SubjectFilterDecorator (class)
Class SubjectFilterDecorator
Event Subject Filter Decorator
Use this decorator to allow your event listener to only be invoked if event subject matches the allowedSubject
option.
The allowedSubject
option can be a list of class names, if you want to check multiple classes.
- Cake\Event\Decorator\AbstractDecorator
- Cake\Event\Decorator\SubjectFilterDecorator