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

Breadcrumb

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

function CacheableRouteProviderInterface::addExtraCacheKeyPart

Adds a cache key part to be used in the cache ID of the route collection.

Parameters

string $cache_key_provider: The provider of the cache key part.

string $cache_key_part: A string to be used as a cache key part.

1 method overrides CacheableRouteProviderInterface::addExtraCacheKeyPart()
RouteProvider::addExtraCacheKeyPart in core/lib/Drupal/Core/Routing/RouteProvider.php
Adds a cache key part to be used in the cache ID of the route collection.

File

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

Class

CacheableRouteProviderInterface
Extends the router provider interface to provide caching support.

Namespace

Drupal\Core\Routing

Code

public function addExtraCacheKeyPart($cache_key_provider, $cache_key_part);

API Navigation

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