You are here

public function RouteSubscriber::__construct in Allow a content type only once (Only One) 8

Constructor.

Parameters

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

\Drupal\Core\Menu\LocalActionManager $local_action_manager: The local action manager instance.

File

src/Routing/RouteSubscriber.php, line 37

Class

RouteSubscriber
Class RouteSubscriber.

Namespace

Drupal\onlyone\Routing

Code

public function __construct(ConfigFactoryInterface $config_factory, LocalActionManager $local_action_manager) {
  $this->configFactory = $config_factory;
  $this->localActionManager = $local_action_manager;
}