annotate core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php @ 0:c75dbcec494b

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