interface EntityViewModeInterface

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityViewModeInterface.php \Drupal\Core\Entity\EntityViewModeInterface
  2. 10 core/lib/Drupal/Core/Entity/EntityViewModeInterface.php \Drupal\Core\Entity\EntityViewModeInterface
  3. 11.x core/lib/Drupal/Core/Entity/EntityViewModeInterface.php \Drupal\Core\Entity\EntityViewModeInterface

Provides an interface defining an entity view mode entity type.

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

Expanded class hierarchy of EntityViewModeInterface

All classes that implement EntityViewModeInterface

3 files declare their use of EntityViewModeInterface
EntityViewMode.php in core/lib/Drupal/Core/Entity/Entity/EntityViewMode.php
field_ui.module in core/modules/field_ui/field_ui.module
Allows administrators to attach custom fields to fieldable types.
MigrateViewModesTest.php in core/modules/field/tests/src/Kernel/Migrate/d7/MigrateViewModesTest.php

File

core/lib/Drupal/Core/Entity/EntityViewModeInterface.php, line 8

Namespace

Drupal\Core\Entity
View source
interface EntityViewModeInterface extends EntityDisplayModeInterface {

}

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