You are here

public static function ContentSyncEvents::getSubscribedEvents in Content Synchronization 3.0.x

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/ContentSyncEvents.php \Drupal\content_sync\EventSubscriber\ContentSyncEvents::getSubscribedEvents()
  2. 8 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\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[EntityTypeEvents::CREATE][] = [
    'onContentSyncCreate',
    40,
  ];
  return $events;
}