You are here

public function RouteSubscriber::__construct in Forms Steps 8

Constructs a \Drupal\forms_steps\EventSubscriber\RouteSubscriber instance.

Parameters

\Drupal\Core\State\StateInterface $state: The state key value store.

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/EventSubscriber/RouteSubscriber.php, line 77

Class

RouteSubscriber
Builds up the routes of all forms steps. (based on views RouteSubscriber)

Namespace

Drupal\forms_steps\EventSubscriber

Code

public function __construct(StateInterface $state, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  $this->formsStepsStorage = $entity_type_manager
    ->getStorage(FormsSteps::ENTITY_TYPE);
  $this->state = $state;
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
}