public static function ContentSyncEvents::getSubscribedEvents in Content Synchronization 8.2
Same name and namespace in other branches
- 8 src/EventSubscriber/ContentSyncEvents.php \Drupal\content_sync\EventSubscriber\ContentSyncEvents::getSubscribedEvents()
- 3.0.x src/EventSubscriber/ContentSyncEvents.php \Drupal\content_sync\EventSubscriber\ContentSyncEvents::getSubscribedEvents()
Registers the methods in this class that should be listeners.
Return value
array An array of event listener definitions.
File
- src/
EventSubscriber/ ContentSyncEvents.php, line 34
Class
- ContentSyncEvents
- Create a content subscriber.
Namespace
Drupal\content_sync\EventSubscriberCode
public static function getSubscribedEvents() {
$events[EntityTypeEvents::CREATE][] = [
'onContentSyncCreate',
40,
];
return $events;
}