You are here

protected function LayoutBuilderEntityViewDisplay::isCustomMode in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isCustomMode()

Indicates if this display is using the '_custom' view mode.

Return value

bool TRUE if this display is using the '_custom' view mode, FALSE otherwise.

2 calls to LayoutBuilderEntityViewDisplay::isCustomMode()
LayoutBuilderEntityViewDisplay::buildMultiple in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Builds a renderable array for the components of a set of entities.
LayoutBuilderEntityViewDisplay::isLayoutBuilderEnabled in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Determines if Layout Builder is enabled.

File

core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php, line 259

Class

LayoutBuilderEntityViewDisplay
Provides an entity view display entity that has a layout.

Namespace

Drupal\layout_builder\Entity

Code

protected function isCustomMode() {
  return $this
    ->getOriginalMode() === static::CUSTOM_MODE;
}