function CacheCollectorInterface::get

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()
  2. 10 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()
  3. 11.x core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()

Gets value from the cache.

Parameters

string $key: Key that identifies the data.

Return value

mixed The corresponding cache data.

1 method overrides CacheCollectorInterface::get()
CacheCollector::get in core/lib/Drupal/Core/Cache/CacheCollector.php
Gets value from the cache.

File

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

Class

CacheCollectorInterface
Provides a caching wrapper to be used in place of large structures.

Namespace

Drupal\Core\Cache

Code

public function get($key);

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