A route subscriber to remove routes that depend on modules being enabled.
Hierarchy
- class \Drupal\Core\Routing\RouteSubscriberBase implements EventSubscriberInterface
- class \Drupal\Core\EventSubscriber\ModuleRouteSubscriber
File
- core/lib/Drupal/Core/EventSubscriber/ModuleRouteSubscriber.php, line 12
Namespace
Drupal\Core\EventSubscriber
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ModuleRouteSubscriber::$moduleHandler | protected | property | The module handler. |
ModuleRouteSubscriber::alterRoutes | protected | function | Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes |
ModuleRouteSubscriber::explodeString | protected | function | Explodes a string based on a separator. |
ModuleRouteSubscriber::__construct | public | function | Constructs a ModuleRouteSubscriber object. |
RouteSubscriberBase::getSubscribedEvents | public static | function | Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents |
RouteSubscriberBase::onAlterRoutes | public | function | Delegates the route altering to self::alterRoutes(). |
Please login to continue.