function EntityDisplayRepositoryInterface::getAllViewModes
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllViewModes()
- 8.9.x core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllViewModes()
- 10 core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllViewModes()
Gets the entity view mode info for all entity types.
Return value
array An associative array containing information about view modes for all entity types. The array is keyed by the entity type ID, and each value is an array of view mode details. View mode details typically include keys like 'id', 'label', 'custom_settings', etc.
1 method overrides EntityDisplayRepositoryInterface::getAllViewModes()
- EntityDisplayRepository::getAllViewModes in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayRepository.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayRepositoryInterface.php, line 26
Class
- EntityDisplayRepositoryInterface
- Provides an interface for an entity display repository.
Namespace
Drupal\Core\EntityCode
public function getAllViewModes();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.