RouteObjectInterface.php

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

Namespace

Drupal\Core\Routing

File

core/lib/Drupal/Core/Routing/RouteObjectInterface.php

View source
<?php

namespace Drupal\Core\Routing;


/**
 * Provides constants used for retrieving matched routes.
 */
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';

}

Interfaces

Title Deprecated Summary
RouteObjectInterface Provides constants used for retrieving matched routes.

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