class RouteSubscriber in Icon API 8
Listens to dynamic route events.
Hierarchy
- class \Drupal\Core\Routing\RouteSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\icon\Routing\RouteSubscriber
Expanded class hierarchy of RouteSubscriber
File
- src/
Routing/ RouteSubscriber.php, line 11
Namespace
Drupal\icon\RoutingView source
class RouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
public function alterRoutes(RouteCollection $collection) {
/**
* @FIXME
* Parts of your hook_menu_alter() logic should be moved in here. You should NOT
* use this method to define new routes -- read the documentation at
* https://www.drupal.org/node/2122201 to learn how to define dynamic routes --
* but to alter existing ones.
*/
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RouteSubscriber:: |
public | function |
Alters existing routes for a specific collection. Overrides RouteSubscriberBase:: |
|
RouteSubscriberBase:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | 5 |
RouteSubscriberBase:: |
public | function | Delegates the route altering to self::alterRoutes(). | 1 |