You are here

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

Constructs a NodeController object.

Parameters

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

File

src/Routing/OnlyOneRoutes.php, line 28

Class

OnlyOneRoutes
Defines dynamic routes.

Namespace

Drupal\onlyone\Routing

Code

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