function BlockContentUuidLookup::__construct

Same name and namespace in other branches
  1. 9 core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__construct()
  2. 8.9.x core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__construct()
  3. 11.x core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__construct()

Constructs a BlockContentUuidLookup instance.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides CacheCollector::__construct

File

core/modules/block_content/src/BlockContentUuidLookup.php, line 40

Class

BlockContentUuidLookup
A cache collector that caches IDs for block_content UUIDs.

Namespace

Drupal\block_content

Code

public function __construct(CacheBackendInterface $cache, LockBackendInterface $lock, EntityTypeManagerInterface $entity_type_manager) {
    parent::__construct('block_content_uuid', $cache, $lock);
    $this->entityTypeManager = $entity_type_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.