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