public function RouteSubscriber::__construct in Entity Clone 8
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\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_manager) {
$this->entityTypeManager = $entity_manager;
}