annotate core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
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@4 12 * @todo Refactor this interface in https://www.drupal.org/node/2985362.
Chris@0 13 */
Chris@4 14 interface LayoutEntityDisplayInterface extends EntityDisplayInterface, SectionListInterface, LayoutBuilderEnabledInterface {
Chris@0 15
Chris@0 16 /**
Chris@0 17 * Determines if the display allows custom overrides.
Chris@0 18 *
Chris@0 19 * @return bool
Chris@0 20 * TRUE if custom overrides are allowed, FALSE otherwise.
Chris@0 21 */
Chris@0 22 public function isOverridable();
Chris@0 23
Chris@0 24 /**
Chris@0 25 * Sets the display to allow or disallow overrides.
Chris@0 26 *
Chris@0 27 * @param bool $overridable
Chris@0 28 * TRUE if the display should allow overrides, FALSE otherwise.
Chris@0 29 *
Chris@0 30 * @return $this
Chris@0 31 */
Chris@0 32 public function setOverridable($overridable = TRUE);
Chris@0 33
Chris@0 34 }