function BlockContentUuidLookup::__construct
Same name and namespace in other branches
- 11.x core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__construct()
- 10 core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__construct()
- 9 core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__construct()
- 8.9.x core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__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.
Overrides CacheCollector::__construct
File
-
core/
modules/ block_content/ src/ BlockContentUuidLookup.php, line 24
Class
- BlockContentUuidLookup
- A cache collector that caches IDs for block_content UUIDs.
Namespace
Drupal\block_contentCode
public function __construct(#[Autowire(service: 'cache.bootstrap')] CacheBackendInterface $cache, #[Autowire(service: 'lock')] LockBackendInterface $lock, protected EntityTypeManagerInterface $entityTypeManager) {
parent::__construct('block_content_uuid', $cache, $lock);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.