You are here

public function ReplicateFieldSubscriber::__construct in Paragraphs 8

ReplicateFieldSubscriber constructor.

Parameters

\Drupal\replicate\Replicator $replicator: The replicator service.

File

src/EventSubscriber/ReplicateFieldSubscriber.php, line 28

Class

ReplicateFieldSubscriber
Event subscriber that handles cloning through the Replicate module.

Namespace

Drupal\paragraphs\EventSubscriber

Code

public function __construct(Replicator $replicator) {
  $this->replicator = $replicator;
}