Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CacheableRouteProviderInterface.php

interface CacheableRouteProviderInterface

Extends the router provider interface to provide caching support.

Hierarchy

  • interface \Drupal\Core\Routing\RouteProviderInterface
    • interface \Drupal\Core\Routing\CacheableRouteProviderInterface extends \Drupal\Core\Routing\RouteProviderInterface

Expanded class hierarchy of CacheableRouteProviderInterface

All classes that implement CacheableRouteProviderInterface

1 file declares its use of CacheableRouteProviderInterface
WorkspaceRequestSubscriber.php in core/modules/workspaces/src/EventSubscriber/WorkspaceRequestSubscriber.php

File

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

Namespace

Drupal\Core\Routing
View source
interface CacheableRouteProviderInterface extends RouteProviderInterface {
    
    /**
     * Adds a cache key part to be used in the cache ID of the route collection.
     *
     * @param string $cache_key_provider
     *   The provider of the cache key part.
     * @param string $cache_key_part
     *   A string to be used as a cache key part.
     */
    public function addExtraCacheKeyPart($cache_key_provider, $cache_key_part);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CacheableRouteProviderInterface::addExtraCacheKeyPart public function Adds a cache key part to be used in the cache ID of the route collection. 1
RouteProviderInterface::getAllRoutes public function Returns all the routes on the system. 2
RouteProviderInterface::getRouteByName public function Find the route using the provided route name. 2
RouteProviderInterface::getRouteCollectionForRequest public function Finds routes that may potentially match the request. 2
RouteProviderInterface::getRoutesByNames public function Find many routes by their names using the provided list of names. 2
RouteProviderInterface::getRoutesByPattern public function Get all routes which match a certain pattern. 2
RouteProviderInterface::reset public function Resets the route provider object. 2

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal