You are here

public function SectionComponentBuildRenderArrayEvent::setBuild in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent::setBuild()
  2. 9 core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent::setBuild()

Set the render array.

Parameters

array $build: A render array.

File

core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php, line 134

Class

SectionComponentBuildRenderArrayEvent
Event fired when a section component's render array is being built.

Namespace

Drupal\layout_builder\Event

Code

public function setBuild(array $build) {
  $this->build = $build;
}