You are here

public function OnlyOneAdminSettings::__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.

Overrides ConfigFormBase::__construct

File

src/Form/OnlyOneAdminSettings.php, line 38

Class

OnlyOneAdminSettings
Class OnlyOneAdminSettings.

Namespace

Drupal\onlyone\Form

Code

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