You are here

public function SetInlineBlockDependency::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/EventSubscriber/SetInlineBlockDependency.php \Drupal\layout_builder\EventSubscriber\SetInlineBlockDependency::__construct()
  2. 9 core/modules/layout_builder/src/EventSubscriber/SetInlineBlockDependency.php \Drupal\layout_builder\EventSubscriber\SetInlineBlockDependency::__construct()

Constructs SetInlineBlockDependency object.

Parameters

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

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\layout_builder\InlineBlockUsageInterface $usage: The inline block usage service.

\Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface $section_storage_manager: The section storage manager.

File

core/modules/layout_builder/src/EventSubscriber/SetInlineBlockDependency.php, line 72

Class

SetInlineBlockDependency
An event subscriber that returns an access dependency for inline blocks.

Namespace

Drupal\layout_builder\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $database, InlineBlockUsageInterface $usage, SectionStorageManagerInterface $section_storage_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->database = $database;
  $this->usage = $usage;
  $this->sectionStorageManager = $section_storage_manager;
}