comparison core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
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 }