public function SectionComponentBuildRenderArrayEvent::inPreview in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent::inPreview()
- 9 core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent::inPreview()
Determine if the component is in preview mode.
Return value
bool Whether the component is in preview mode or not.
File
- core/
modules/ layout_builder/ src/ Event/ SectionComponentBuildRenderArrayEvent.php, line 114
Class
- SectionComponentBuildRenderArrayEvent
- Event fired when a section component's render array is being built.
Namespace
Drupal\layout_builder\EventCode
public function inPreview() {
return $this->inPreview;
}