public function ContextCacheKeys::__construct

public ContextCacheKeys::__construct(array $keys)

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!Context!ContextCacheKeys.php/function/ContextCacheKeys::__construct/8.1.x