You are here

public function ConfigEventSubscriber::__construct in Fixed Block Content 8

Constructs SetFixedBlockDependency object.

Parameters

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

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend to check if a config import is ongoing.

File

src/EventSubscriber/ConfigEventSubscriber.php, line 40

Class

ConfigEventSubscriber
An event subscriber that manages the auto-export feature.

Namespace

Drupal\fixed_block_content\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LockBackendInterface $lock) {
  $this->entityTypeManager = $entity_type_manager;
  $this->lock = $lock;
}