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

Constructs a new RouteSubscriber object.

Parameters

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

File

src/Routing/RouteSubscriber.php, line 30

Class

RouteSubscriber
Subscriber for Entity Clone routes.

Namespace

Drupal\entity_clone\Routing

Code

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