You are here

public function ReplicateFieldSubscriber::__construct in Entity Reference with Layout 8

ReplicateFieldSubscriber constructor.

Parameters

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

File

src/EventSubscriber/ReplicateFieldSubscriber.php, line 29

Class

ReplicateFieldSubscriber
Event subscriber that handles cloning through the Replicate module.

Namespace

Drupal\entity_reference_layout\EventSubscriber

Code

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