function ContextCacheKeys::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php \Drupal\Core\Cache\Context\ContextCacheKeys::__construct()
  2. 10 core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php \Drupal\Core\Cache\Context\ContextCacheKeys::__construct()
  3. 11.x core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php \Drupal\Core\Cache\Context\ContextCacheKeys::__construct()

Constructs a ContextCacheKeys object.

Parameters

string[] $keys: The cache context keys.

File

core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php, line 25

Class

ContextCacheKeys
A value object to store generated cache keys with its cacheability metadata.

Namespace

Drupal\Core\Cache\Context

Code

public function __construct(array $keys) {
    $this->keys = $keys;
}

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