Same name in other branches
  1. 2.x src/Routing/RouteSubscriber.php \Drupal\entity_clone\Routing\RouteSubscriber::__construct()

Constructs a new RouteSubscriber object.

Paramètres

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity type manager.

Fichier

src/Routing/RouteSubscriber.php, line 30

Classe

RouteSubscriber
Subscriber for Entity Clone routes.

Namespace

Drupal\entity_clone\Routing

Code

public function __construct(EntityTypeManagerInterface $entity_manager) {
    $this->entityTypeManager = $entity_manager;
}