Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SectionComponentBuildRenderArrayEvent.php

function 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\Event

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal