annotate core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php @ 4:a9cd425dd02b

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