interface LayoutBuilderOverridableInterface

Same name in other branches
  1. 11.x core/modules/layout_builder/src/LayoutBuilderOverridableInterface.php \Drupal\layout_builder\LayoutBuilderOverridableInterface

Provides an interface for displays that could be overridable.

Hierarchy

Expanded class hierarchy of LayoutBuilderOverridableInterface

All classes that implement LayoutBuilderOverridableInterface

1 file declares its use of LayoutBuilderOverridableInterface
LayoutEntityDisplayInterface.php in core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php

File

core/modules/layout_builder/src/LayoutBuilderOverridableInterface.php, line 8

Namespace

Drupal\layout_builder
View source
interface LayoutBuilderOverridableInterface {
    
    /**
     * Determines if the display allows custom overrides.
     *
     * @return bool
     *   TRUE if custom overrides are allowed, FALSE otherwise.
     */
    public function isOverridable();
    
    /**
     * Sets the display to allow or disallow overrides.
     *
     * @param bool $overridable
     *   TRUE if the display should allow overrides, FALSE otherwise.
     *
     * @return $this
     */
    public function setOverridable($overridable = TRUE);

}

Members

Title Sort descending Modifiers Object type Summary
LayoutBuilderOverridableInterface::isOverridable public function Determines if the display allows custom overrides.
LayoutBuilderOverridableInterface::setOverridable public function Sets the display to allow or disallow overrides.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.