You are here

public function BlockContentUuidLookup::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/block_content/src/BlockContentUuidLookup.php \Drupal\block_content\BlockContentUuidLookup::__construct()
  2. 10 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;
}