You are here

protected function ProviderRepository::cacheGet in Drupal 8

Fetches from the cache backend, respecting the use caches flag.

Parameters

string $cid: The cache ID of the data to retrieve.

Return value

object|false The cache item or FALSE on failure.

Overrides UseCacheBackendTrait::cacheGet

See also

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

File

core/modules/media/tests/modules/media_test_oembed/src/ProviderRepository.php, line 19

Class

ProviderRepository
Overrides the oEmbed provider repository service for testing purposes.

Namespace

Drupal\media_test_oembed

Code

protected function cacheGet($cid) {
  return FALSE;
}