function CacheCollector::resolveCacheMiss

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::resolveCacheMiss()
  2. 8.9.x core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::resolveCacheMiss()
  3. 11.x core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::resolveCacheMiss()

Resolves a cache miss.

When an offset is not found in the object, this is treated as a cache miss. This method allows classes using this implementation to look up the actual value and allow it to be cached.

Parameters

string $key: The offset that was requested.

Return value

mixed The value of the offset, or NULL if no value was found.

1 call to CacheCollector::resolveCacheMiss()
CacheCollector::get in core/lib/Drupal/Core/Cache/CacheCollector.php
8 methods override CacheCollector::resolveCacheMiss()
AliasWhitelist::resolveCacheMiss in core/modules/path_alias/src/AliasWhitelist.php
BlockContentUuidLookup::resolveCacheMiss in core/modules/block_content/src/BlockContentUuidLookup.php
CacheCollectorHelper::resolveCacheMiss in core/tests/Drupal/Tests/Core/Cache/CacheCollectorHelper.php
LibraryDiscoveryCollector::resolveCacheMiss in core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php
LocaleLookup::resolveCacheMiss in core/modules/locale/src/LocaleLookup.php
Resolves a cache miss.

... See full list

File

core/lib/Drupal/Core/Cache/CacheCollector.php, line 213

Class

CacheCollector
Default implementation for CacheCollectorInterface.

Namespace

Drupal\Core\Cache

Code

protected abstract function resolveCacheMiss($key);

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