You are here

public function LayoutBuilderLocalTaskDeriver::__construct in Drupal 10

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

Constructs a new LayoutBuilderLocalTaskDeriver.

Parameters

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

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

File

core/modules/layout_builder/src/Plugin/Derivative/LayoutBuilderLocalTaskDeriver.php, line 47

Class

LayoutBuilderLocalTaskDeriver
Provides local task definitions for the layout builder user interface.

Namespace

Drupal\layout_builder\Plugin\Derivative

Code

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