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

Breadcrumb

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

function VariationCacheInterface::delete

Deletes an item from the cache.

To stay consistent with ::get(), this only affects the active variation, not all possible variations for the associated cache contexts.

Parameters

string[] $keys: The cache keys of the data to delete.

\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.

See also

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

1 method overrides VariationCacheInterface::delete()
VariationCache::delete in core/lib/Drupal/Core/Cache/VariationCache.php
Deletes an item from the cache.

File

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

Class

VariationCacheInterface
Defines an interface for variation cache implementations.

Namespace

Drupal\Core\Cache

Code

public function delete(array $keys, CacheableDependencyInterface $initial_cacheability) : void;

API Navigation

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