public function CacheCollector::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::__construct()
Constructs a CacheCollector object.
Parameters
string $cid: The cid for the array being cached.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.
\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.
array $tags: (optional) The tags to specify for the cache item.
3 calls to CacheCollector::__construct()
- AliasWhitelist::__construct in core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php - Constructs an AliasWhitelist object.
- LibraryDiscoveryCollector::__construct in core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryCollector.php - Constructs a CacheCollector object.
- MenuActiveTrail::__construct in core/
lib/ Drupal/ Core/ Menu/ MenuActiveTrail.php - Constructs a \Drupal\Core\Menu\MenuActiveTrail object.
5 methods override CacheCollector::__construct()
- AliasWhitelist::__construct in core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php - Constructs an AliasWhitelist object.
- LibraryDiscoveryCollector::__construct in core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryCollector.php - Constructs a CacheCollector object.
- LocaleLookup::__construct in core/
modules/ locale/ src/ LocaleLookup.php - Constructs a LocaleLookup object.
- MenuActiveTrail::__construct in core/
lib/ Drupal/ Core/ Menu/ MenuActiveTrail.php - Constructs a \Drupal\Core\Menu\MenuActiveTrail object.
- ThemeRegistry::__construct in core/
lib/ Drupal/ Core/ Utility/ ThemeRegistry.php - Constructs a ThemeRegistry object.
File
- core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php, line 118 - Contains \Drupal\Core\Cache\CacheCollector.
Class
- CacheCollector
- Default implementation for CacheCollectorInterface.
Namespace
Drupal\Core\CacheCode
public function __construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, array $tags = array()) {
assert('\\Drupal\\Component\\Assertion\\Inspector::assertAllStrings($tags)', 'Cache tags must be strings.');
$this->cid = $cid;
$this->cache = $cache;
$this->tags = $tags;
$this->lock = $lock;
}