Mercurial > hg > isophonics-drupal-site
annotate 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 |
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@14 | 6 use Drupal\layout_builder\SectionListInterface; |
Chris@14 | 7 |
Chris@14 | 8 /** |
Chris@14 | 9 * Provides an interface for entity displays that have layout. |
Chris@14 | 10 * |
Chris@14 | 11 * @internal |
Chris@14 | 12 * Layout Builder is currently experimental and should only be leveraged by |
Chris@14 | 13 * experimental modules and development releases of contributed modules. |
Chris@14 | 14 * See https://www.drupal.org/core/experimental for more information. |
Chris@14 | 15 */ |
Chris@14 | 16 interface LayoutEntityDisplayInterface extends EntityDisplayInterface, SectionListInterface { |
Chris@14 | 17 |
Chris@14 | 18 /** |
Chris@14 | 19 * Determines if the display allows custom overrides. |
Chris@14 | 20 * |
Chris@14 | 21 * @return bool |
Chris@14 | 22 * TRUE if custom overrides are allowed, FALSE otherwise. |
Chris@14 | 23 */ |
Chris@14 | 24 public function isOverridable(); |
Chris@14 | 25 |
Chris@14 | 26 /** |
Chris@14 | 27 * Sets the display to allow or disallow overrides. |
Chris@14 | 28 * |
Chris@14 | 29 * @param bool $overridable |
Chris@14 | 30 * TRUE if the display should allow overrides, FALSE otherwise. |
Chris@14 | 31 * |
Chris@14 | 32 * @return $this |
Chris@14 | 33 */ |
Chris@14 | 34 public function setOverridable($overridable = TRUE); |
Chris@14 | 35 |
Chris@14 | 36 } |