Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Entity / EntityViewMode.php
1 <?php
2
3 namespace Drupal\Core\Entity\Entity;
4
5 use Drupal\Core\Entity\EntityDisplayModeBase;
6 use Drupal\Core\Entity\EntityViewModeInterface;
7
8 /**
9  * Defines the entity view mode configuration entity class.
10  *
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.
22  *
23  * @see \Drupal\Core\Entity\EntityManagerInterface::getAllViewModes()
24  * @see \Drupal\Core\Entity\EntityManagerInterface::getViewModes()
25  * @see hook_entity_view_mode_info_alter()
26  *
27  * @ConfigEntityType(
28  *   id = "entity_view_mode",
29  *   label = @Translation("View mode"),
30  *   entity_keys = {
31  *     "id" = "id",
32  *     "label" = "label"
33  *   },
34  *   config_export = {
35  *     "id",
36  *     "label",
37  *     "targetEntityType",
38  *     "cache",
39  *   }
40  * )
41  */
42 class EntityViewMode extends EntityDisplayModeBase implements EntityViewModeInterface {
43
44 }