RealnameRouteSubscriber.php in Real Name 8
Same filename and directory in other branches
Namespace
Drupal\realname\RoutingFile
src/Routing/RealnameRouteSubscriber.phpView source
<?php
namespace Drupal\realname\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
/**
* Subscriber for routes.
*/
class RealnameRouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('system.entity_autocomplete')) {
$route
->setDefault('_controller', '\\Drupal\\realname\\Controller\\RealnameAutocompleteController::handleAutocomplete');
}
}
}
Classes
Name | Description |
---|---|
RealnameRouteSubscriber | Subscriber for routes. |