You are here

public static function ContentEntityTestAlterSubscriber::getSubscribedEvents in Replication 8

Same name and namespace in other branches
  1. 8.2 tests/modules/replication_alter_test/src/Event/ContentEntityTestAlterSubscriber.php \Drupal\replication_alter_test\Event\ContentEntityTestAlterSubscriber::getSubscribedEvents()

File

tests/modules/replication_alter_test/src/Event/ContentEntityTestAlterSubscriber.php, line 18

Class

ContentEntityTestAlterSubscriber
Event subscriber to test altering data during normalization.

Namespace

Drupal\replication_alter_test\Event

Code

public static function getSubscribedEvents() {
  $events = [];
  $events[ReplicationDataEvents::ALTER_CONTENT_DATA][] = [
    'onAlterContentData',
    0,
  ];
  return $events;
}