class HeartbeatAutocompleteSubscriber in Heartbeat 8
Hierarchy
- class \Drupal\Core\Routing\RouteSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\heartbeat\Routing\HeartbeatAutocompleteSubscriber
Expanded class hierarchy of HeartbeatAutocompleteSubscriber
1 string reference to 'HeartbeatAutocompleteSubscriber'
1 service uses HeartbeatAutocompleteSubscriber
File
- src/
Routing/ HeartbeatAutocompleteSubscriber.php, line 8
Namespace
Drupal\heartbeat\RoutingView source
class HeartbeatAutocompleteSubscriber extends RouteSubscriberBase {
public function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('system.entity_autocomplete')) {
$route
->setDefault('_controller', '\\Drupal\\heartbeat\\Controller\\HeartbeatAutocompleteController::handleAutocomplete');
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HeartbeatAutocompleteSubscriber:: |
public | function |
Alters existing routes for a specific collection. Overrides RouteSubscriberBase:: |
|
RouteSubscriberBase:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | 5 |
RouteSubscriberBase:: |
public | function | Delegates the route altering to self::alterRoutes(). | 1 |