You are here

public static function ReplicateFieldSubscriber::getSubscribedEvents in Paragraphs 8

File

src/EventSubscriber/ReplicateFieldSubscriber.php, line 49

Class

ReplicateFieldSubscriber
Event subscriber that handles cloning through the Replicate module.

Namespace

Drupal\paragraphs\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[ReplicatorEvents::replicateEntityField('entity_reference_revisions')][] = 'onClone';
  return $events;
}