You are here

public function RouteSubscriber::__construct in State Machine 8

Constructs a new RouteSubscriber object.

Parameters

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

File

src/Routing/RouteSubscriber.php, line 28

Class

RouteSubscriber
Subscriber for state machine transition routes on entities.

Namespace

Drupal\state_machine\Routing

Code

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