interface EntityDisplayModeInterface
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php \Drupal\Core\Entity\EntityDisplayModeInterface
- 10 core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php \Drupal\Core\Entity\EntityDisplayModeInterface
- 8.9.x core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php \Drupal\Core\Entity\EntityDisplayModeInterface
Provides an interface for entity types that hold form and view mode settings.
Hierarchy
- interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterface; interface \Drupal\Core\Entity\EntityInterface extends \Drupal\Core\Access\AccessibleInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface; interface \Drupal\Core\Entity\SynchronizableInterface extends \Drupal\Core\Entity\EntityInterface
- interface \Drupal\Core\Config\Entity\ConfigEntityInterface extends \Drupal\Core\Entity\EntityInterface, \Drupal\Core\Config\Entity\ThirdPartySettingsInterface, \Drupal\Core\Entity\SynchronizableInterface
- interface \Drupal\Core\Entity\EntityDisplayModeInterface extends \Drupal\Core\Config\Entity\ConfigEntityInterface
- interface \Drupal\Core\Config\Entity\ConfigEntityInterface extends \Drupal\Core\Entity\EntityInterface, \Drupal\Core\Config\Entity\ThirdPartySettingsInterface, \Drupal\Core\Entity\SynchronizableInterface
Expanded class hierarchy of EntityDisplayModeInterface
All classes that implement EntityDisplayModeInterface
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayModeInterface.php, line 10
Namespace
Drupal\Core\EntityView source
interface EntityDisplayModeInterface extends ConfigEntityInterface {
/**
* Gets the entity type this display mode is used for.
*
* @return string
* The entity type name.
*/
public function getTargetType();
/**
* Set the entity type this display mode is used for.
*
* @param string $target_entity_type
* The target entity type for this display mode.
*
* @return $this
*/
public function setTargetType($target_entity_type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.