You are here

public function SectionComponentRenderArray::__construct in Core Context 8

BlockComponentRenderArray constructor.

Parameters

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

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

File

src/EventSubscriber/SectionComponentRenderArray.php, line 44

Class

SectionComponentRenderArray
Reacts to a render array being generated for a layout section component.

Namespace

Drupal\core_context\EventSubscriber

Code

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