class EntityViewDisplay in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php \Drupal\Core\Entity\Entity\EntityViewDisplay
- 10 core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php \Drupal\Core\Entity\Entity\EntityViewDisplay
Configuration entity that contains display options for all components of a rendered entity in a given view mode.
Plugin annotation
@ConfigEntityType(
id = "entity_view_display",
label = @Translation("Entity view display"),
entity_keys = {
"id" = "id",
"status" = "status"
},
handlers = {
"access" = "\Drupal\Core\Entity\Entity\Access\EntityViewDisplayAccessControlHandler",
},
config_export = {
"id",
"targetEntityType",
"bundle",
"mode",
"content",
"hidden",
}
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTrait
- class \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses SynchronizableEntityTrait, PluginDependencyTrait
- class \Drupal\Core\Entity\EntityDisplayBase implements EntityDisplayInterface
- class \Drupal\Core\Entity\Entity\EntityViewDisplay implements EntityViewDisplayInterface
- class \Drupal\Core\Entity\EntityDisplayBase implements EntityDisplayInterface
- class \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses SynchronizableEntityTrait, PluginDependencyTrait
Expanded class hierarchy of EntityViewDisplay
77 files declare their use of EntityViewDisplay
- AggregatorDisplayConfigurableTest.php in core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorDisplayConfigurableTest.php - CommentDefaultFormatter.php in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentDefaultFormatter.php - CommentIntegrationTest.php in core/
modules/ comment/ tests/ src/ Kernel/ CommentIntegrationTest.php - CommentInterfaceTest.php in core/
modules/ comment/ tests/ src/ Functional/ CommentInterfaceTest.php - CommentRssTest.php in core/
modules/ comment/ tests/ src/ Functional/ CommentRssTest.php
File
- core/
lib/ Drupal/ Core/ Entity/ Entity/ EntityViewDisplay.php, line 38
Namespace
Drupal\Core\Entity\EntityView source
class EntityViewDisplay extends EntityDisplayBase implements EntityViewDisplayInterface {
/**
* {@inheritdoc}
*/
protected $displayContext = 'view';
/**
* Returns the display objects used to render a set of entities.
*
* Depending on the configuration of the view mode for each bundle, this can
* be either the display object associated with the view mode, or the
* 'default' display.
*
* This method should only be used internally when rendering an entity. When
* assigning suggested display options for a component in a given view mode,
* EntityDisplayRepositoryInterface::getViewDisplay() should be used instead,
* in order to avoid inadvertently modifying the output of other view modes
* that might happen to use the 'default' display too. Those options will then
* be effectively applied only if the view mode is configured to use them.
*
* hook_entity_view_display_alter() is invoked on each display, allowing 3rd
* party code to alter the display options held in the display before they are
* used to generate render arrays.
*
* @param \Drupal\Core\Entity\FieldableEntityInterface[] $entities
* The entities being rendered. They should all be of the same entity type.
* @param string $view_mode
* The view mode being rendered.
*
* @return \Drupal\Core\Entity\Display\EntityViewDisplayInterface[]
* The display objects to use to render the entities, keyed by entity
* bundle.
*
* @see \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewDisplay()
* @see hook_entity_view_display_alter()
*/
public static function collectRenderDisplays($entities, $view_mode) {
if (empty($entities)) {
return [];
}
// Collect entity type and bundles.
$entity_type = current($entities)
->getEntityTypeId();
$bundles = [];
foreach ($entities as $entity) {
$bundles[$entity
->bundle()] = TRUE;
}
$bundles = array_keys($bundles);
// For each bundle, check the existence and status of:
// - the display for the view mode,
// - the 'default' display.
$candidate_ids = [];
foreach ($bundles as $bundle) {
if ($view_mode != 'default') {
$candidate_ids[$bundle][] = $entity_type . '.' . $bundle . '.' . $view_mode;
}
$candidate_ids[$bundle][] = $entity_type . '.' . $bundle . '.default';
}
$results = \Drupal::entityQuery('entity_view_display')
->condition('id', NestedArray::mergeDeepArray($candidate_ids))
->condition('status', TRUE)
->execute();
// For each bundle, select the first valid candidate display, if any.
$load_ids = [];
foreach ($bundles as $bundle) {
foreach ($candidate_ids[$bundle] as $candidate_id) {
if (isset($results[$candidate_id])) {
$load_ids[$bundle] = $candidate_id;
break;
}
}
}
// Load the selected displays.
$storage = \Drupal::entityTypeManager()
->getStorage('entity_view_display');
$displays = $storage
->loadMultiple($load_ids);
$displays_by_bundle = [];
foreach ($bundles as $bundle) {
// Use the selected display if any, or create a fresh runtime object.
if (isset($load_ids[$bundle])) {
$display = $displays[$load_ids[$bundle]];
}
else {
$display = $storage
->create([
'targetEntityType' => $entity_type,
'bundle' => $bundle,
'mode' => $view_mode,
'status' => TRUE,
]);
}
// Let the display know which view mode was originally requested.
$display->originalMode = $view_mode;
// Let modules alter the display.
$display_context = [
'entity_type' => $entity_type,
'bundle' => $bundle,
'view_mode' => $view_mode,
];
\Drupal::moduleHandler()
->alter('entity_view_display', $display, $display_context);
$displays_by_bundle[$bundle] = $display;
}
return $displays_by_bundle;
}
/**
* Returns the display object used to render an entity.
*
* See the collectRenderDisplays() method for details.
*
* @param \Drupal\Core\Entity\FieldableEntityInterface $entity
* The entity being rendered.
* @param string $view_mode
* The view mode.
*
* @return \Drupal\Core\Entity\Display\EntityViewDisplayInterface
* The display object that should be used to render the entity.
*
* @see \Drupal\Core\Entity\Entity\EntityViewDisplay::collectRenderDisplays()
*/
public static function collectRenderDisplay(FieldableEntityInterface $entity, $view_mode) {
$displays = static::collectRenderDisplays([
$entity,
], $view_mode);
return $displays[$entity
->bundle()];
}
/**
* {@inheritdoc}
*/
public function __construct(array $values, $entity_type) {
$this->pluginManager = \Drupal::service('plugin.manager.field.formatter');
parent::__construct($values, $entity_type);
}
/**
* {@inheritdoc}
*/
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
// Reset the render cache for the target entity type.
parent::postSave($storage, $update);
if (\Drupal::entityTypeManager()
->hasHandler($this->targetEntityType, 'view_builder')) {
\Drupal::entityTypeManager()
->getViewBuilder($this->targetEntityType)
->resetCache();
}
}
/**
* {@inheritdoc}
*/
public function getRenderer($field_name) {
if (isset($this->plugins[$field_name])) {
return $this->plugins[$field_name];
}
// Instantiate the formatter object from the stored display properties.
if (($configuration = $this
->getComponent($field_name)) && isset($configuration['type']) && ($definition = $this
->getFieldDefinition($field_name))) {
$formatter = $this->pluginManager
->getInstance([
'field_definition' => $definition,
'view_mode' => $this->originalMode,
// No need to prepare, defaults have been merged in setComponent().
'prepare' => FALSE,
'configuration' => $configuration,
]);
}
else {
$formatter = NULL;
}
// Persist the formatter object.
$this->plugins[$field_name] = $formatter;
return $formatter;
}
/**
* {@inheritdoc}
*/
public function build(FieldableEntityInterface $entity) {
$build = $this
->buildMultiple([
$entity,
]);
return $build[0];
}
/**
* {@inheritdoc}
*/
public function buildMultiple(array $entities) {
$build_list = [];
foreach ($entities as $key => $entity) {
$build_list[$key] = [];
}
// Run field formatters.
foreach ($this
->getComponents() as $name => $options) {
if ($formatter = $this
->getRenderer($name)) {
// Group items across all entities and pass them to the formatter's
// prepareView() method.
$grouped_items = [];
foreach ($entities as $id => $entity) {
$items = $entity
->get($name);
$items
->filterEmptyItems();
$grouped_items[$id] = $items;
}
$formatter
->prepareView($grouped_items);
// Then let the formatter build the output for each entity.
foreach ($entities as $id => $entity) {
$items = $grouped_items[$id];
/** @var \Drupal\Core\Access\AccessResultInterface $field_access */
$field_access = $items
->access('view', NULL, TRUE);
// The language of the field values to display is already determined
// in the incoming $entity. The formatter should build its output of
// those values using:
// - the entity language if the entity is translatable,
// - the current "content language" otherwise.
if ($entity instanceof TranslatableDataInterface && $entity
->isTranslatable()) {
$view_langcode = $entity
->language()
->getId();
}
else {
$view_langcode = NULL;
}
$build_list[$id][$name] = $field_access
->isAllowed() ? $formatter
->view($items, $view_langcode) : [];
// Apply the field access cacheability metadata to the render array.
$this->renderer
->addCacheableDependency($build_list[$id][$name], $field_access);
}
}
}
foreach ($entities as $id => $entity) {
// Assign the configured weights.
foreach ($this
->getComponents() as $name => $options) {
if (isset($build_list[$id][$name]) && !Element::isEmpty($build_list[$id][$name])) {
$build_list[$id][$name]['#weight'] = $options['weight'];
}
}
// Let other modules alter the renderable array.
$context = [
'entity' => $entity,
'view_mode' => $this->originalMode,
'display' => $this,
];
\Drupal::moduleHandler()
->alter('entity_display_build', $build_list[$id], $context);
}
return $build_list;
}
/**
* {@inheritdoc}
*/
public function getPluginCollections() {
$configurations = [];
foreach ($this
->getComponents() as $field_name => $configuration) {
if (!empty($configuration['type']) && ($field_definition = $this
->getFieldDefinition($field_name))) {
$configurations[$configuration['type']] = $configuration + [
'field_definition' => $field_definition,
'view_mode' => $this->originalMode,
];
}
}
return [
'formatters' => new EntityDisplayPluginCollection($this->pluginManager, $configurations),
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableDependencyTrait:: |
protected | property | Cache contexts. | |
CacheableDependencyTrait:: |
protected | property | Cache max-age. | |
CacheableDependencyTrait:: |
protected | property | Cache tags. | |
CacheableDependencyTrait:: |
protected | function | Sets cacheability; useful for value object constructors. | |
ConfigEntityBase:: |
private | property | Whether the config is being deleted by the uninstall process. | |
ConfigEntityBase:: |
protected | property | The language code of the entity's default language. | |
ConfigEntityBase:: |
protected | property | The original ID of the configuration entity. | |
ConfigEntityBase:: |
protected | property | Third party entity settings. | |
ConfigEntityBase:: |
protected | property | Trust supplied data and not use configuration schema on save. | |
ConfigEntityBase:: |
protected | property | The UUID for this entity. | |
ConfigEntityBase:: |
protected | property | Information maintained by Drupal core about configuration. | |
ConfigEntityBase:: |
protected | function | Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). | |
ConfigEntityBase:: |
public | function |
Creates a duplicate of the entity. Overrides EntityBase:: |
1 |
ConfigEntityBase:: |
public | function |
Disables the configuration entity. Overrides ConfigEntityInterface:: |
1 |
ConfigEntityBase:: |
public | function |
Enables the configuration entity. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Returns the value of a property. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Returns the cache tags that should be used to invalidate caches. Overrides EntityBase:: |
1 |
ConfigEntityBase:: |
public | function |
Gets the configuration dependency name. Overrides EntityBase:: |
|
ConfigEntityBase:: |
protected static | function | Gets the configuration manager. | |
ConfigEntityBase:: |
public | function |
Gets the configuration target identifier for the entity. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Gets the configuration dependencies. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets the original ID. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Gets the list of third parties that store information. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets the value of a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets all third-party settings of a given module. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
protected | function | Gets the typed config manager. | |
ConfigEntityBase:: |
public | function |
Gets whether on not the data is trusted. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
protected static | function |
Override to never invalidate the individual entities' cache tags; the
config system already invalidates them. Overrides EntityBase:: |
|
ConfigEntityBase:: |
protected | function |
Override to never invalidate the entity's cache tag; the config system
already invalidates it. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Checks whether this entity is installable. Overrides ConfigEntityInterface:: |
2 |
ConfigEntityBase:: |
public | function |
Overrides Entity::isNew(). Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Returns whether this entity is being changed during the uninstall process. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Deprecated way of generating a link to the entity. See toLink(). Overrides EntityBase:: |
|
ConfigEntityBase:: |
public static | function |
Acts on entities before they are deleted and before hooks are invoked. Overrides EntityBase:: |
8 |
ConfigEntityBase:: |
public | function |
Saves an entity permanently. Overrides EntityBase:: |
1 |
ConfigEntityBase:: |
public | function |
Sets the value of a property. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Sets the original ID. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Sets the status of the configuration entity. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Sets the value of a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function | ||
ConfigEntityBase:: |
public static | function | Helper callback for uasort() to sort configuration entities by weight and label. | 6 |
ConfigEntityBase:: |
public | function |
Returns whether the configuration entity is enabled. Overrides ConfigEntityInterface:: |
4 |
ConfigEntityBase:: |
public | function |
Gets the URL object for the entity. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Sets that the data should be trusted. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Unsets a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets the public URL for this entity. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Gets the URL object for the entity. Overrides EntityBase:: |
|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | Aliased as: traitSleep | 1 |
DependencyTrait:: |
protected | property | The object's dependencies. | |
DependencyTrait:: |
protected | function | Adds multiple dependencies. | |
DependencyTrait:: |
protected | function | Adds a dependency. Aliased as: addDependencyTrait | |
EntityBase:: |
protected | property | Boolean indicating whether the entity should be forced to be new. | |
EntityBase:: |
protected | property | The entity type. | |
EntityBase:: |
protected | property | A typed data object wrapping this entity. | |
EntityBase:: |
public | function |
Checks data value access. Overrides AccessibleInterface:: |
1 |
EntityBase:: |
public | function |
Gets the bundle of the entity. Overrides EntityInterface:: |
1 |
EntityBase:: |
public static | function |
Constructs a new entity object, without permanently saving it. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Deletes an entity permanently. Overrides EntityInterface:: |
2 |
EntityBase:: |
public | function |
Enforces an entity to be new. Overrides EntityInterface:: |
|
EntityBase:: |
protected | function | Gets the entity manager. | |
EntityBase:: |
protected | function | Gets the entity type bundle info service. | |
EntityBase:: |
protected | function | Gets the entity type manager. | |
EntityBase:: |
public | function |
The cache contexts associated with this object. Overrides CacheableDependencyTrait:: |
|
EntityBase:: |
public | function |
The maximum age for which this object may be cached. Overrides CacheableDependencyTrait:: |
|
EntityBase:: |
public | function |
The cache tags associated with this object. Overrides CacheableDependencyTrait:: |
|
EntityBase:: |
public | function |
Gets the key that is used to store configuration dependencies. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets the entity type definition. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets the ID of the type of the entity. Overrides EntityInterface:: |
|
EntityBase:: |
protected | function | The list cache tags to invalidate for this entity. | |
EntityBase:: |
public | function |
Gets a typed data object for this entity object. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Indicates if a link template exists for a given key. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets the label of the entity. Overrides EntityInterface:: |
6 |
EntityBase:: |
public | function |
Gets the language of the entity. Overrides EntityInterface:: |
1 |
EntityBase:: |
protected | function | Gets the language manager. | |
EntityBase:: |
protected | function | Gets an array link templates. | 1 |
EntityBase:: |
public static | function |
Loads an entity. Overrides EntityInterface:: |
|
EntityBase:: |
public static | function |
Loads one or more entities. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Acts on a created entity before hooks are invoked. Overrides EntityInterface:: |
4 |
EntityBase:: |
public static | function |
Acts on deleted entities before the delete hook is invoked. Overrides EntityInterface:: |
16 |
EntityBase:: |
public static | function |
Acts on loaded entities. Overrides EntityInterface:: |
2 |
EntityBase:: |
public static | function |
Changes the values of an entity before it is created. Overrides EntityInterface:: |
5 |
EntityBase:: |
public | function |
Gets a list of entities referenced by this entity. Overrides EntityInterface:: |
1 |
EntityBase:: |
public | function |
Generates the HTML for a link to this entity. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets a list of URI relationships supported by this entity. Overrides EntityInterface:: |
|
EntityBase:: |
protected | function | Gets an array of placeholders for this entity. | 2 |
EntityBase:: |
public | function |
Gets the entity UUID (Universally Unique Identifier). Overrides EntityInterface:: |
1 |
EntityBase:: |
protected | function | Gets the UUID generator. | |
EntityDisplayBase:: |
protected | property | Bundle to be displayed. | |
EntityDisplayBase:: |
protected | property | List of component display options, keyed by component name. | |
EntityDisplayBase:: |
protected | property | A list of field definitions eligible for configuration in this display. | |
EntityDisplayBase:: |
protected | property | List of components that are set to be hidden. | |
EntityDisplayBase:: |
protected | property | Unique ID for the config entity. | |
EntityDisplayBase:: |
protected | property | View or form mode to be displayed. | |
EntityDisplayBase:: |
protected | property | The original view or form mode that was requested (case of view/form modes being configured to fall back to the 'default' display). | |
EntityDisplayBase:: |
protected | property | The plugin manager used by this entity type. | |
EntityDisplayBase:: |
protected | property | The plugin objects used for this display, keyed by field name. | |
EntityDisplayBase:: |
protected | property | The renderer. | |
EntityDisplayBase:: |
protected | property |
Whether this display is enabled or not. If the entity (form) display
is disabled, we'll fall back to the 'default' display. Overrides ConfigEntityBase:: |
|
EntityDisplayBase:: |
protected | property | Entity type to be displayed. | |
EntityDisplayBase:: |
public | function |
Calculates dependencies and stores them in the dependency property. Overrides ConfigEntityBase:: |
1 |
EntityDisplayBase:: |
public | function |
Creates a duplicate of the entity display object on a different view mode. Overrides EntityDisplayInterface:: |
1 |
EntityDisplayBase:: |
constant | The 'mode' for runtime EntityDisplay objects used to render entities with arbitrary display options rather than a configured view mode or form mode. | ||
EntityDisplayBase:: |
private | function | Determines if a field has options for a given display. | |
EntityDisplayBase:: |
public | function |
Gets the display options set for a component. Overrides EntityDisplayInterface:: |
1 |
EntityDisplayBase:: |
public | function |
Gets the display options for all components. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
protected | function | Gets the default region. | 1 |
EntityDisplayBase:: |
protected | function | Gets the field definition of a field. | |
EntityDisplayBase:: |
protected | function | Gets the definitions of the fields that are candidate for display. | |
EntityDisplayBase:: |
public | function |
Gets the highest weight of the components in the display. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
protected | function | Provides the 'system' channel logger service. | |
EntityDisplayBase:: |
public | function |
Gets the view or form mode to be displayed. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
public | function |
Gets the original view or form mode that was requested. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
protected | function | Returns the plugin dependencies being removed. | |
EntityDisplayBase:: |
public | function |
Gets the bundle to be displayed. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
public | function |
Gets the entity type for which this display is used. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
protected | function | Handles a component type of 'hidden'. | |
EntityDisplayBase:: |
public | function |
Gets the identifier. Overrides EntityBase:: |
|
EntityDisplayBase:: |
protected | function | Initializes the display. | |
EntityDisplayBase:: |
public | function |
Informs the entity that entities it depends on will be deleted. Overrides ConfigEntityBase:: |
1 |
EntityDisplayBase:: |
public | function |
Acts on an entity before the presave hook is invoked. Overrides ConfigEntityBase:: |
1 |
EntityDisplayBase:: |
public | function |
Sets a component to be hidden. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
public | function |
Sets the display options for a component. Overrides EntityDisplayInterface:: |
1 |
EntityDisplayBase:: |
public | function |
Sets the bundle to be displayed. Overrides EntityDisplayInterface:: |
|
EntityDisplayBase:: |
public | function |
Gets an array of all property values. Overrides ConfigEntityBase:: |
|
EntityDisplayBase:: |
public | function |
Overrides ConfigEntityBase:: |
|
EntityDisplayBase:: |
public | function |
Overrides DependencySerializationTrait:: |
|
EntityViewDisplay:: |
protected | property |
Context in which this entity will be used (e.g. 'view', 'form'). Overrides EntityDisplayBase:: |
|
EntityViewDisplay:: |
public | function |
Builds a renderable array for the components of an entity. Overrides EntityViewDisplayInterface:: |
|
EntityViewDisplay:: |
public | function |
Builds a renderable array for the components of a set of entities. Overrides EntityViewDisplayInterface:: |
1 |
EntityViewDisplay:: |
public static | function | Returns the display object used to render an entity. | |
EntityViewDisplay:: |
public static | function | Returns the display objects used to render a set of entities. | |
EntityViewDisplay:: |
public | function |
Gets the plugin collections used by this object. Overrides ObjectWithPluginCollectionInterface:: |
|
EntityViewDisplay:: |
public | function |
Gets the renderer plugin for a field (e.g. widget, formatter). Overrides EntityDisplayInterface:: |
|
EntityViewDisplay:: |
public | function |
Acts on a saved entity before the insert or update hook is invoked. Overrides EntityBase:: |
|
EntityViewDisplay:: |
public | function |
Constructs an Entity object. Overrides EntityDisplayBase:: |
1 |
PluginDependencyTrait:: |
protected | function | Calculates and adds dependencies of a specific plugin instance. | 1 |
PluginDependencyTrait:: |
protected | function | Calculates and returns dependencies of a specific plugin instance. | |
PluginDependencyTrait:: |
protected | function | Wraps the module handler. | 1 |
PluginDependencyTrait:: |
protected | function | Wraps the theme handler. | 1 |
RefinableCacheableDependencyTrait:: |
public | function | 1 | |
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
SynchronizableEntityTrait:: |
protected | property | Whether this entity is being created, updated or deleted through a synchronization process. | |
SynchronizableEntityTrait:: |
public | function | ||
SynchronizableEntityTrait:: |
public | function |