You are here

class HeartbeatAutocompleteSubscriber in Heartbeat 8

Hierarchy

Expanded class hierarchy of HeartbeatAutocompleteSubscriber

1 string reference to 'HeartbeatAutocompleteSubscriber'
heartbeat.services.yml in ./heartbeat.services.yml
heartbeat.services.yml
1 service uses HeartbeatAutocompleteSubscriber
heartbeat_autocomplete.route_subscriber in ./heartbeat.services.yml
Drupal\heartbeat\Routing\HeartbeatAutocompleteSubscriber

File

src/Routing/HeartbeatAutocompleteSubscriber.php, line 8

Namespace

Drupal\heartbeat\Routing
View 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

Namesort descending Modifiers Type Description Overrides
HeartbeatAutocompleteSubscriber::alterRoutes public function Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes
RouteSubscriberBase::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. 5
RouteSubscriberBase::onAlterRoutes public function Delegates the route altering to self::alterRoutes(). 1