3 namespace Drupal\Core\Entity\Entity;
5 use Drupal\Core\Entity\EntityDisplayModeBase;
6 use Drupal\Core\Entity\EntityViewModeInterface;
9 * Defines the entity view mode configuration entity class.
11 * View modes let entities be displayed differently depending on the context.
12 * For instance, a node can be displayed differently on its own page ('full'
13 * mode), on the home page or taxonomy listings ('teaser' mode), or in an RSS
14 * feed ('rss' mode). Modules taking part in the display of the entity (notably
15 * the Field API) can adjust their behavior depending on the requested view
16 * mode. An additional 'default' view mode is available for all entity types.
17 * This view mode is not intended for actual entity display, but holds default
18 * display settings. For each available view mode, administrators can configure
19 * whether it should use its own set of field display settings, or just
20 * replicate the settings of the 'default' view mode, thus reducing the amount
21 * of display configurations to keep track of.
23 * @see \Drupal\Core\Entity\EntityManagerInterface::getAllViewModes()
24 * @see \Drupal\Core\Entity\EntityManagerInterface::getViewModes()
25 * @see hook_entity_view_mode_info_alter()
28 * id = "entity_view_mode",
29 * label = @Translation("View mode"),
42 class EntityViewMode extends EntityDisplayModeBase implements EntityViewModeInterface {