function LayoutBuilderEntityViewDisplay::isLayoutBuilderEnabled
Same name in other branches
- 9 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isLayoutBuilderEnabled()
- 10 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isLayoutBuilderEnabled()
- 11.x core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isLayoutBuilderEnabled()
Overrides LayoutBuilderEnabledInterface::isLayoutBuilderEnabled
5 calls to LayoutBuilderEntityViewDisplay::isLayoutBuilderEnabled()
- LayoutBuilderEntityViewDisplay::getComponent in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Gets the display options set for a component.
- LayoutBuilderEntityViewDisplay::isOverridable in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Determines if the display allows custom overrides.
- LayoutBuilderEntityViewDisplay::preSave in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Acts on an entity before the presave hook is invoked.
- LayoutBuilderEntityViewDisplay::setComponent in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Sets the display options for a component.
- LayoutBuilderEntityViewDisplay::setOverridable in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Sets the display to allow or disallow overrides.
File
-
core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php, line 74
Class
- LayoutBuilderEntityViewDisplay
- Provides an entity view display entity that has a layout.
Namespace
Drupal\layout_builder\EntityCode
public function isLayoutBuilderEnabled() {
// Layout Builder must not be enabled for the '_custom' view mode that is
// used for on-the-fly rendering of fields in isolation from the entity.
if ($this->isCustomMode()) {
return FALSE;
}
return (bool) $this->getThirdPartySetting('layout_builder', 'enabled');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.