You are here

class ReplicateFieldSubscriber in Bricks​ 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/ReplicateFieldSubscriber.php \Drupal\bricks\EventSubscriber\ReplicateFieldSubscriber

Event subscriber that handles cloning through the Replicate module.

Hierarchy

Expanded class hierarchy of ReplicateFieldSubscriber

File

src/EventSubscriber/ReplicateFieldSubscriber.php, line 11

Namespace

Drupal\bricks\EventSubscriber
View source
class ReplicateFieldSubscriber extends BaseReplicateFieldSubscriber {

  /**
   * {@inheritdoc}
   */
  public static function getSubscribedEvents() {
    $events[ReplicatorEvents::replicateEntityField('bricks_revisioned')][] = 'onClone';
    return $events;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ReplicateFieldSubscriber::$replicator protected property The replicator service.
ReplicateFieldSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. Overrides ReplicateFieldSubscriber::getSubscribedEvents
ReplicateFieldSubscriber::onClone public function Replicates paragraphs when the parent entity is being replicated.
ReplicateFieldSubscriber::__construct public function ReplicateFieldSubscriber constructor.