Drupal 8  8.0.2
ModuleRouteSubscriber Class Reference
Inheritance diagram for ModuleRouteSubscriber:

Public Member Functions

 __construct (ModuleHandlerInterface $module_handler)
 
- Public Member Functions inherited from RouteSubscriberBase
 onAlterRoutes (RouteBuildEvent $event)
 

Protected Member Functions

 alterRoutes (RouteCollection $collection)
 
 explodeString ($string, $separator= ',')
 
- Protected Member Functions inherited from RouteSubscriberBase
 alterRoutes (RouteCollection $collection)
 

Protected Attributes

 $moduleHandler
 

Additional Inherited Members

- Static Public Member Functions inherited from RouteSubscriberBase
static getSubscribedEvents ()
 

Detailed Description

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

Constructor & Destructor Documentation

__construct ( ModuleHandlerInterface  $module_handler)

Constructs a ModuleRouteSubscriber object.

Parameters
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.

References Drupal\moduleHandler().

Here is the call graph for this function:

Member Function Documentation

alterRoutes ( RouteCollection  $collection)
protected

{}

References ModuleRouteSubscriber\explodeString(), and Drupal\moduleHandler().

Here is the call graph for this function:

explodeString (   $string,
  $separator = ',' 
)
protected

Explodes a string based on a separator.

Parameters
string$stringThe string to explode.
string$separatorThe string separator to explode with.
Returns
array An array of exploded (and trimmed) values.

Referenced by ModuleRouteSubscriber\alterRoutes().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: