ModuleRouteSubscriber
class ModuleRouteSubscriber extends RouteSubscriberBase (View source)
A route subscriber to remove routes that depend on modules being enabled.
Properties
| protected ModuleHandlerInterface | $moduleHandler | The module handler. |
Methods
alterRoutes(RouteCollection $collection)
Alters existing routes for a specific collection.
from
RouteSubscriberBase
array
explodeString(string $string, string $separator = ',')
Explodes a string based on a separator.
Details
protected
alterRoutes(RouteCollection $collection)
Alters existing routes for a specific collection.
static
getSubscribedEvents()
{@inheritdoc}
onAlterRoutes(RouteBuildEvent $event)
Delegates the route altering to self::alterRoutes().
__construct(ModuleHandlerInterface $module_handler)
Constructs a ModuleRouteSubscriber object.
protected array
explodeString(string $string, string $separator = ',')
Explodes a string based on a separator.