function LayoutBuilderEntityViewDisplay::setOverridable
Attributes
#[ActionMethod(adminLabel: new TranslatableMarkup('Toggle overridable layouts'), pluralize: FALSE, name: 'allowLayoutOverrides')]
  Parameters
bool $overridable: TRUE if the display should allow overrides, FALSE otherwise.
Return value
$this
Overrides LayoutBuilderOverridableInterface::setOverridable
1 call to LayoutBuilderEntityViewDisplay::setOverridable()
- LayoutBuilderEntityViewDisplay::disableLayoutBuilder in core/modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php 
- #[ActionMethod(adminLabel: new TranslatableMarkup('Disable Layout Builder'), pluralize: FALSE)]
File
- 
              core/modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php, line 64 
Class
- LayoutBuilderEntityViewDisplay
- Provides an entity view display entity that has a layout.
Namespace
Drupal\layout_builder\EntityCode
public function setOverridable($overridable = TRUE) {
  $this->setThirdPartySetting('layout_builder', 'allow_custom', $overridable);
  // Enable Layout Builder if it's not already enabled and overriding.
  if ($overridable && !$this->isLayoutBuilderEnabled()) {
    $this->enableLayoutBuilder();
  }
  return $this;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
