EntityDisplayRepositoryInterface::getFormModes

public EntityDisplayRepositoryInterface::getFormModes($entity_type_id) Gets the entity form mode info for a specific entity type. Parameters string $entity_type_id: The entity type whose form mode info should be returned. Return value array The form mode info for a specific entity type. File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 46 Class EntityDisplayRepositoryInterface Provides an interface for an entity display repository. Namespace Drupal\Core\Entit

EntityDisplayRepositoryInterface::getFormModeOptionsByBundle

public EntityDisplayRepositoryInterface::getFormModeOptionsByBundle($entity_type_id, $bundle) Returns an array of enabled form mode options by bundle. Parameters string $entity_type_id: The entity type whose form mode options should be returned. string $bundle: The name of the bundle. Return value array An array of form mode labels, keyed by the display mode ID. File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 94 Class EntityDisplayRepositoryInterface Provides

EntityDisplayRepositoryInterface::getFormModeOptions

public EntityDisplayRepositoryInterface::getFormModeOptions($entity_type_id) Gets an array of form mode options. Parameters string $entity_type_id: The entity type whose form mode options should be returned. Return value array An array of form mode labels, keyed by the display mode ID. File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 68 Class EntityDisplayRepositoryInterface Provides an interface for an entity display repository. Namespace Drupal\Core\Entity

EntityDisplayRepositoryInterface::getAllViewModes

public EntityDisplayRepositoryInterface::getAllViewModes() Gets the entity view mode info for all entity types. Return value array The view mode info for all entity types. File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 16 Class EntityDisplayRepositoryInterface Provides an interface for an entity display repository. Namespace Drupal\Core\Entity Code public function getAllViewModes();

EntityDisplayRepositoryInterface::getAllFormModes

public EntityDisplayRepositoryInterface::getAllFormModes() Gets the entity form mode info for all entity types. Return value array The form mode info for all entity types. File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 35 Class EntityDisplayRepositoryInterface Provides an interface for an entity display repository. Namespace Drupal\Core\Entity Code public function getAllFormModes();

EntityDisplayRepositoryInterface::clearDisplayModeInfo

public EntityDisplayRepositoryInterface::clearDisplayModeInfo() Clears the gathered display mode info. Return value $this File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 101 Class EntityDisplayRepositoryInterface Provides an interface for an entity display repository. Namespace Drupal\Core\Entity Code public function clearDisplayModeInfo();

EntityDisplayRepositoryInterface

Provides an interface for an entity display repository. Hierarchy interface \Drupal\Core\Entity\EntityDisplayRepositoryInterface File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 8 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityDisplayRepositoryInterface::clearDisplayModeInfo public function Clears the gathered display mode info. EntityDisplayRepositoryInterface::getAllFormModes public function Gets the entity

EntityDisplayRepository::__construct

public EntityDisplayRepository::__construct(EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager) Constructs a new EntityDisplayRepository. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler. \Drupal\Core\Cache\CacheBackendInterface $cache_backe

EntityDisplayRepository::getViewModes

public EntityDisplayRepository::getViewModes($entity_type_id) Gets the entity view mode info for a specific entity type. Parameters string $entity_type_id: The entity type whose view mode info should be returned. Return value array The view mode info for a specific entity type. Overrides EntityDisplayRepositoryInterface::getViewModes File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 77 Class EntityDisplayRepository Provides a repository for entity display objects (view m

EntityDisplayRepository::getViewModeOptionsByBundle

public EntityDisplayRepository::getViewModeOptionsByBundle($entity_type_id, $bundle) Returns an array of enabled view mode options by bundle. Parameters string $entity_type_id: The entity type whose view mode options should be returned. string $bundle: The name of the bundle. Return value array An array of view mode labels, keyed by the display mode ID. Overrides EntityDisplayRepositoryInterface::getViewModeOptionsByBundle File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 167