3 namespace Drupal\layout_builder\Entity;
5 use Drupal\Core\Entity\Display\EntityDisplayInterface;
6 use Drupal\layout_builder\LayoutBuilderEnabledInterface;
7 use Drupal\layout_builder\SectionListInterface;
10 * Provides an interface for entity displays that have layout.
13 * Layout Builder is currently experimental and should only be leveraged by
14 * experimental modules and development releases of contributed modules.
15 * See https://www.drupal.org/core/experimental for more information.
17 * @todo Refactor this interface in https://www.drupal.org/node/2985362.
19 interface LayoutEntityDisplayInterface extends EntityDisplayInterface, SectionListInterface, LayoutBuilderEnabledInterface {
22 * Determines if the display allows custom overrides.
25 * TRUE if custom overrides are allowed, FALSE otherwise.
27 public function isOverridable();
30 * Sets the display to allow or disallow overrides.
32 * @param bool $overridable
33 * TRUE if the display should allow overrides, FALSE otherwise.
37 public function setOverridable($overridable = TRUE);