class AdminRouteSubscriber extends RouteSubscriberBase (View source)

Adds the _admin_route option to each admin HTML route.

Methods

alterRoutes(RouteCollection $collection)

Alters existing routes for a specific collection.

static 
getSubscribedEvents()

{@inheritdoc}

onAlterRoutes(RouteBuildEvent $event)

Delegates the route altering to self::alterRoutes().

static bool
isHtmlRoute(Route $route)

Determines whether the given route is an HTML route.

Details

protected alterRoutes(RouteCollection $collection)

Alters existing routes for a specific collection.

Parameters

RouteCollection $collection

The route collection for adding routes.

static getSubscribedEvents()

{@inheritdoc}

onAlterRoutes(RouteBuildEvent $event)

Delegates the route altering to self::alterRoutes().

Parameters

RouteBuildEvent $event

The route build event.

static protected bool isHtmlRoute(Route $route)

Determines whether the given route is an HTML route.

Parameters

Route $route

The route to analyze.

Return Value

bool

TRUE if HTML is a valid format for this route.