Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php
- 9 core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php
Namespace
Drupal\Core\Cache\Context
File
core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php
View source
<?php
namespace Drupal\Core\Cache\Context;
use Drupal\Core\Cache\CacheableMetadata;
class ContextCacheKeys extends CacheableMetadata {
protected $keys;
public function __construct(array $keys) {
sort($keys);
$this->keys = $keys;
}
public function getKeys() {
return $this->keys;
}
}
Classes
Name |
Description |
ContextCacheKeys |
A value object to store generated cache keys with its cacheability metadata. |