Mercurial > hg > isophonics-drupal-site
annotate core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
rev | line source |
---|---|
Chris@14 | 1 <?php |
Chris@14 | 2 |
Chris@14 | 3 namespace Drupal\layout_builder\Entity; |
Chris@14 | 4 |
Chris@14 | 5 use Drupal\Core\Entity\Display\EntityDisplayInterface; |
Chris@17 | 6 use Drupal\layout_builder\LayoutBuilderEnabledInterface; |
Chris@14 | 7 use Drupal\layout_builder\SectionListInterface; |
Chris@14 | 8 |
Chris@14 | 9 /** |
Chris@14 | 10 * Provides an interface for entity displays that have layout. |
Chris@14 | 11 * |
Chris@14 | 12 * @internal |
Chris@14 | 13 * Layout Builder is currently experimental and should only be leveraged by |
Chris@14 | 14 * experimental modules and development releases of contributed modules. |
Chris@14 | 15 * See https://www.drupal.org/core/experimental for more information. |
Chris@17 | 16 * |
Chris@17 | 17 * @todo Refactor this interface in https://www.drupal.org/node/2985362. |
Chris@14 | 18 */ |
Chris@17 | 19 interface LayoutEntityDisplayInterface extends EntityDisplayInterface, SectionListInterface, LayoutBuilderEnabledInterface { |
Chris@14 | 20 |
Chris@14 | 21 /** |
Chris@14 | 22 * Determines if the display allows custom overrides. |
Chris@14 | 23 * |
Chris@14 | 24 * @return bool |
Chris@14 | 25 * TRUE if custom overrides are allowed, FALSE otherwise. |
Chris@14 | 26 */ |
Chris@14 | 27 public function isOverridable(); |
Chris@14 | 28 |
Chris@14 | 29 /** |
Chris@14 | 30 * Sets the display to allow or disallow overrides. |
Chris@14 | 31 * |
Chris@14 | 32 * @param bool $overridable |
Chris@14 | 33 * TRUE if the display should allow overrides, FALSE otherwise. |
Chris@14 | 34 * |
Chris@14 | 35 * @return $this |
Chris@14 | 36 */ |
Chris@14 | 37 public function setOverridable($overridable = TRUE); |
Chris@14 | 38 |
Chris@14 | 39 } |