b8fd21d822b224dcb266ff7f45b8644b03f4c50f
[yaffs-website] / web / core / modules / layout_builder / src / Entity / LayoutEntityDisplayInterface.php
1 <?php
2
3 namespace Drupal\layout_builder\Entity;
4
5 use Drupal\Core\Entity\Display\EntityDisplayInterface;
6 use Drupal\layout_builder\SectionListInterface;
7
8 /**
9  * Provides an interface for entity displays that have layout.
10  *
11  * @internal
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.
15  */
16 interface LayoutEntityDisplayInterface extends EntityDisplayInterface, SectionListInterface {
17
18   /**
19    * Determines if the display allows custom overrides.
20    *
21    * @return bool
22    *   TRUE if custom overrides are allowed, FALSE otherwise.
23    */
24   public function isOverridable();
25
26   /**
27    * Sets the display to allow or disallow overrides.
28    *
29    * @param bool $overridable
30    *   TRUE if the display should allow overrides, FALSE otherwise.
31    *
32    * @return $this
33    */
34   public function setOverridable($overridable = TRUE);
35
36 }