public function LayoutBuilderEntityViewDisplay::disableLayoutBuilder in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::disableLayoutBuilder()
- 9 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::disableLayoutBuilder()
Disables the Layout Builder.
Return value
$this
Overrides LayoutBuilderEnabledInterface::disableLayoutBuilder
File
- core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php, line 93
Class
- LayoutBuilderEntityViewDisplay
- Provides an entity view display entity that has a layout.
Namespace
Drupal\layout_builder\EntityCode
public function disableLayoutBuilder() {
$this
->setOverridable(FALSE);
$this
->setThirdPartySetting('layout_builder', 'enabled', FALSE);
return $this;
}