You are here

public function ContextCacheKeys::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 30
Contains \Drupal\Core\Cache\Context\ContextCacheKeys.

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;
}