You are here

public function RouteSubscriber::alterRoutes in Twilio 8

Alters existing routes for a specific collection.

Parameters

\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.

Overrides RouteSubscriberBase::alterRoutes

File

src/Routing/RouteSubscriber.php, line 16

Class

RouteSubscriber
Listens to dynamic route events.

Namespace

Drupal\twilio\Routing

Code

public function alterRoutes(RouteCollection $collection) {

  // @TODO
  // Parts of your hook_menu_alter() logic should be moved in here.
}