interface LayoutEntityDisplayInterface
Same name and namespace in other branches
- 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
- interface \Drupal\Core\Entity\Display\EntityDisplayInterface implements \Drupal\Core\Config\Entity\ConfigEntityInterface, \Drupal\Core\Entity\EntityWithPluginCollectionInterface; interface \Drupal\layout_builder\LayoutBuilderEnabledInterface; interface \Drupal\layout_builder\SectionListInterface implements \Drupal\layout_builder\Countable
- interface \Drupal\layout_builder\Entity\LayoutEntityDisplayInterface implements \Drupal\Core\Entity\Display\EntityDisplayInterface, \Drupal\layout_builder\SectionListInterface, \Drupal\layout_builder\LayoutBuilderEnabledInterface
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
File
-
core/
modules/ layout_builder/ src/ Entity/ LayoutEntityDisplayInterface.php, line 14
Namespace
Drupal\layout_builder\EntityView 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.