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

Breadcrumb

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

function 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

File

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

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;
}

API Navigation

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