function LayoutBuilderOverridableInterface::setOverridable
Same name and namespace in other branches
- 10 core/modules/layout_builder/src/LayoutBuilderOverridableInterface.php \Drupal\layout_builder\LayoutBuilderOverridableInterface::setOverridable()
Sets the display to allow or disallow overrides.
Parameters
bool $overridable: TRUE if the display should allow overrides, FALSE otherwise.
Return value
$this
2 methods override LayoutBuilderOverridableInterface::setOverridable()
- DefaultsSectionStorage::setOverridable in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ DefaultsSectionStorage.php - Sets the display to allow or disallow overrides.
- LayoutBuilderEntityViewDisplay::setOverridable in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - #[ActionMethod(adminLabel: new TranslatableMarkup('Toggle overridable layouts'), pluralize: FALSE, name: 'allowLayoutOverrides')]
File
-
core/
modules/ layout_builder/ src/ LayoutBuilderOverridableInterface.php, line 26
Class
- LayoutBuilderOverridableInterface
- Provides an interface for displays that could be overridable.
Namespace
Drupal\layout_builderCode
public function setOverridable($overridable = TRUE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.