interface RouteObjectInterface

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/RouteObjectInterface.php \Drupal\Core\Routing\RouteObjectInterface
  2. 10 core/lib/Drupal/Core/Routing/RouteObjectInterface.php \Drupal\Core\Routing\RouteObjectInterface

Provides constants used for retrieving matched routes.

Hierarchy

Expanded class hierarchy of RouteObjectInterface

All classes that implement RouteObjectInterface

51 files declare their use of RouteObjectInterface
AccessAwareRouterTest.php in core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php
AccessManager.php in core/lib/Drupal/Core/Access/AccessManager.php
AccessManagerTest.php in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
AuthenticationManagerTest.php in core/tests/Drupal/Tests/Core/Authentication/AuthenticationManagerTest.php
authorize.php in core/authorize.php
Administrative script for running authorized file operations.

... See full list

File

core/lib/Drupal/Core/Routing/RouteObjectInterface.php, line 8

Namespace

Drupal\Core\Routing
View source
interface RouteObjectInterface {
    
    /**
     * Key for the route name.
     *
     * @var string
     */
    const ROUTE_NAME = '_route';
    
    /**
     * Key for the route object.
     *
     * @var string
     */
    const ROUTE_OBJECT = '_route_object';
    
    /**
     * Key for the controller.
     */
    const CONTROLLER_NAME = '_controller';

}

Members

Title Sort descending Modifiers Object type Summary
RouteObjectInterface::CONTROLLER_NAME constant Key for the controller.
RouteObjectInterface::ROUTE_NAME constant Key for the route name.
RouteObjectInterface::ROUTE_OBJECT constant Key for the route object.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.