You are here

public function EntityDuplicateSubscriber::__construct in Entity API 8

Constructs a new EntityDuplicateSubscriber object.

Parameters

\Drupal\entity\BundleEntityDuplicatorInterface $bundle_entity_duplicator: The bundle entity duplicator.

File

src/EventSubscriber/EntityDuplicateSubscriber.php, line 25

Class

EntityDuplicateSubscriber

Namespace

Drupal\entity\EventSubscriber

Code

public function __construct(BundleEntityDuplicatorInterface $bundle_entity_duplicator) {
  $this->bundleEntityDuplicator = $bundle_entity_duplicator;
}