public function OnlyOneModuleHandler::__construct in Allow a content type only once (Only One) 8
Constructor.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list.
File
- src/
OnlyOneModuleHandler.php, line 47
Class
- OnlyOneModuleHandler
- Class OnlyOne.
Namespace
Drupal\onlyoneCode
public function __construct(ModuleHandlerInterface $module_handler, RendererInterface $renderer, ModuleExtensionList $module_extension_list) {
$this->moduleHandler = $module_handler;
$this->renderer = $renderer;
$this->moduleExtensionList = $module_extension_list;
}