You are here

class RouteSubscriber in Book access 1.x

Listens to dynamic route events.

Hierarchy

Expanded class hierarchy of RouteSubscriber

1 string reference to 'RouteSubscriber'
book_access.services.yml in ./book_access.services.yml
book_access.services.yml
1 service uses RouteSubscriber
book_access.route_subscriber in ./book_access.services.yml
Drupal\book_access\Routing\RouteSubscriber

File

src/Routing/RouteSubscriber.php, line 14
Contains \Drupal\book_access\Routing\RouteSubscriber.

Namespace

Drupal\book_access\Routing
View 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

Namesort descending Modifiers Type Description Overrides
RouteSubscriber::alterRoutes public function Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes
RouteSubscriberBase::getSubscribedEvents public static function 7
RouteSubscriberBase::onAlterRoutes public function Delegates the route altering to self::alterRoutes(). 1