public static function AutomatedCrop::getSubscribedEvents in Automated Crop 8
Registers the methods in this class that should be listeners.
Return value
array An array of event listener definitions.
File
- modules/
automated_crop_crop_provider/ src/ EventSubscriber/ AutomatedCrop.php, line 99
Class
- AutomatedCrop
- A subscriber running automated crop after a crop is needed.
Namespace
Drupal\automated_crop_crop_provider\EventSubscriberCode
public static function getSubscribedEvents() {
return [
Events::AUTOMATIC_CROP => [
[
'generateAutomatedCrop',
100,
],
],
];
}