public static function MyEventSubscriber::getSubscribedEvents in Recurring Dates Field 3.x
Same name and namespace in other branches
- 8.2 date_recur.api.php \MyEventSubscriber::getSubscribedEvents()
- 3.0.x date_recur.api.php \MyEventSubscriber::getSubscribedEvents()
- 3.1.x date_recur.api.php \MyEventSubscriber::getSubscribedEvents()
File
- ./
date_recur.api.php, line 82 - Contains hooks and event examples for date_recur module.
Class
- MyEventSubscriber
- Event subscribers for Recurring Date Field.
Code
public static function getSubscribedEvents() : array {
return [
\Drupal\date_recur\Event\DateRecurEvents::FIELD_VALUE_SAVE => [
'onSave',
],
\Drupal\date_recur\Event\DateRecurEvents::FIELD_ENTITY_DELETE => [
'onEntityDelete',
],
\Drupal\date_recur\Event\DateRecurEvents::FIELD_REVISION_DELETE => [
'onEntityRevisionDelete',
],
];
}