You are here

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

Constructor.

Parameters

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

\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route builder.

File

modules/onlyone_admin_toolbar/src/OnlyOneAdminToolbar.php, line 35

Class

OnlyOneAdminToolbar
Class OnlyOneAdminToolbar.

Namespace

Drupal\onlyone_admin_toolbar

Code

public function __construct(ConfigFactoryInterface $config_factory, RouteBuilderInterface $route_builder) {
  $this->configFactory = $config_factory;
  $this->routeBuilder = $route_builder;
}