protected function LayoutBuilderEntityViewDisplay::isCustomMode in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isCustomMode()
- 9 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 258
Class
- LayoutBuilderEntityViewDisplay
- Provides an entity view display entity that has a layout.
Namespace
Drupal\layout_builder\EntityCode
protected function isCustomMode() {
return $this
->getOriginalMode() === static::CUSTOM_MODE;
}