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

Breadcrumb

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

function VariationCacheInterface::get

Gets a cache entry based on cache keys.

Parameters

string[] $keys: The cache keys to retrieve the cache entry for.

\Drupal\Core\Cache\CacheableDependencyInterface $initial_cacheability: The cache metadata of the data to store before other systems had a chance to adjust it. This is also commonly known as "pre-bubbling" cacheability.

Return value

object|false The cache item or FALSE on failure.

See also

\Drupal\Core\Cache\CacheBackendInterface::get()

1 method overrides VariationCacheInterface::get()
VariationCache::get in core/lib/Drupal/Core/Cache/VariationCache.php
Gets a cache entry based on cache keys.

File

core/lib/Drupal/Core/Cache/VariationCacheInterface.php, line 30

Class

VariationCacheInterface
Defines an interface for variation cache implementations.

Namespace

Drupal\Core\Cache

Code

public function get(array $keys, CacheableDependencyInterface $initial_cacheability);

API Navigation

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