RouteSubscriber.php in Twilio 8
Namespace
Drupal\twilio\RoutingFile
src/Routing/RouteSubscriber.phpView source
<?php
namespace Drupal\twilio\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
/**
* Listens to dynamic route events.
*/
class RouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
public function alterRoutes(RouteCollection $collection) {
// @TODO
// Parts of your hook_menu_alter() logic should be moved in here.
}
}
Classes
Name | Description |
---|---|
RouteSubscriber | Listens to dynamic route events. |