You are here

public function CacheContexts::getAll in Render cache 7.2

Provides an array of available cache contexts.

Return value

array An array of available cache contexts.

1 call to CacheContexts::getAll()
CacheContexts::convertTokensToKeys in lib/Drupal/Core/Cache/CacheContexts.php
Converts cache context tokens to string representations of the context.

File

lib/Drupal/Core/Cache/CacheContexts.php, line 56
Contains \Drupal\Core\Cache\CacheContexts.

Class

CacheContexts
Defines the CacheContexts service.

Namespace

Drupal\Core\Cache

Code

public function getAll() {
  return $this->contexts;
}