ModuleRouteSubscriber::__construct

public ModuleRouteSubscriber::__construct(ModuleHandlerInterface $module_handler)

Constructs a ModuleRouteSubscriber object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

core/lib/Drupal/Core/EventSubscriber/ModuleRouteSubscriber.php, line 27

Class

ModuleRouteSubscriber
A route subscriber to remove routes that depend on modules being enabled.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
}
doc_Drupal
2016-10-29 09:29:27
Comments
Leave a Comment

Please login to continue.