CacheContextsManager::__construct

public CacheContextsManager::__construct(ContainerInterface $container, array $contexts)

Constructs a CacheContextsManager object.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The current service container.

string[] $contexts: An array of the available cache context IDs.

File

core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php, line 47

Class

CacheContextsManager
Converts cache context tokens into cache keys.

Namespace

Drupal\Core\Cache\Context

Code

public function __construct(ContainerInterface $container, array $contexts) {
  $this->container = $container;
  $this->contexts = $contexts;
}
doc_Drupal
2016-10-29 08:49:28
Comments
Leave a Comment

Please login to continue.