interface LayoutEntityDisplayInterface

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php \Drupal\layout_builder\Entity\LayoutEntityDisplayInterface

Provides an interface for entity displays that have layout.

@todo Refactor this interface in https://www.drupal.org/node/2985362.

Hierarchy

Expanded class hierarchy of LayoutEntityDisplayInterface

All classes that implement LayoutEntityDisplayInterface

8 files declare their use of LayoutEntityDisplayInterface
DefaultsEntityForm.php in core/modules/layout_builder/src/Form/DefaultsEntityForm.php
DefaultsSectionStorageTest.php in core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php
LayoutBuilderEntityViewDisplayForm.php in core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php
LayoutBuilderIsActiveCacheContext.php in core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php
LayoutBuilderIsActiveCacheContextTest.php in core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php

... See full list

File

core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php, line 14

Namespace

Drupal\layout_builder\Entity
View source
interface LayoutEntityDisplayInterface extends EntityDisplayInterface, SectionListInterface, LayoutBuilderEnabledInterface {
  
  /**
   * Determines if the display allows custom overrides.
   *
   * @return bool
   *   TRUE if custom overrides are allowed, FALSE otherwise.
   */
  public function isOverridable();
  
  /**
   * Sets the display to allow or disallow overrides.
   *
   * @param bool $overridable
   *   TRUE if the display should allow overrides, FALSE otherwise.
   *
   * @return $this
   */
  public function setOverridable($overridable = TRUE);

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.