public function LayoutBuilderEntityViewDisplay::isOverridable in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isOverridable()
Determines if the display allows custom overrides.
Return value
bool TRUE if custom overrides are allowed, FALSE otherwise.
Overrides LayoutEntityDisplayInterface::isOverridable
1 call to LayoutBuilderEntityViewDisplay::isOverridable()
- LayoutBuilderEntityViewDisplay::preSave in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Acts on an entity before the presave hook is invoked.
File
- core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php, line 55
Class
- LayoutBuilderEntityViewDisplay
- Provides an entity view display entity that has a layout.
Namespace
Drupal\layout_builder\EntityCode
public function isOverridable() {
return $this
->isLayoutBuilderEnabled() && $this
->getThirdPartySetting('layout_builder', 'allow_custom', FALSE);
}