function SectionComponentBuildRenderArrayEvent::getContexts

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent::getContexts()
  2. 10 core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent::getContexts()
  3. 11.x core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent::getContexts()

Get the available contexts.

Return value

array|\Drupal\Core\Plugin\Context\ContextInterface[] The available contexts.

File

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

Class

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

Namespace

Drupal\layout_builder\Event

Code

public function getContexts() {
    return $this->contexts;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.