EntityDisplayRepository::getViewModeOptions

public EntityDisplayRepository::getViewModeOptions($entity_type) Gets an array of view mode options. Parameters string $entity_type_id: The entity type whose view mode options should be returned. Return value array An array of view mode labels, keyed by the display mode ID. Overrides EntityDisplayRepositoryInterface::getViewModeOptions File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 153 Class EntityDisplayRepository Provides a repository for entity display objects (vie

EntityDisplayRepository::getFormModes

public EntityDisplayRepository::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. Overrides EntityDisplayRepositoryInterface::getFormModes File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 91 Class EntityDisplayRepository Provides a repository for entity display objects (view m

EntityDisplayRepository::getFormModeOptionsByBundle

public EntityDisplayRepository::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. Overrides EntityDisplayRepositoryInterface::getFormModeOptionsByBundle File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 174

EntityDisplayRepository::getFormModeOptions

public EntityDisplayRepository::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. Overrides EntityDisplayRepositoryInterface::getFormModeOptions File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 160 Class EntityDisplayRepository Provides a repository for entity display objects (

EntityDisplayRepository::getDisplayModesByEntityType

protected EntityDisplayRepository::getDisplayModesByEntityType($display_type, $entity_type_id) Gets the entity display mode info for a specific entity type. Parameters string $display_type: The display type to be retrieved. It can be "view_mode" or "form_mode". string $entity_type_id: The entity type whose display mode info should be returned. Return value array The display mode info for a specific entity type. File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 137 Class E

EntityDisplayRepository::getDisplayModeOptionsByBundle

protected EntityDisplayRepository::getDisplayModeOptionsByBundle($display_type, $entity_type_id, $bundle) Returns an array of enabled display mode options by bundle. Parameters $display_type: The display type to be retrieved. It can be "view_mode" or "form_mode". string $entity_type_id: The entity type whose display mode options should be returned. string $bundle: The name of the bundle. Return value array An array of display mode labels, keyed by the display mode ID. File core/lib/Drupal/Cor

EntityDisplayRepository::getDisplayModeOptions

protected EntityDisplayRepository::getDisplayModeOptions($display_type, $entity_type_id) Gets an array of display mode options. Parameters string $display_type: The display type to be retrieved. It can be "view_mode" or "form_mode". string $entity_type_id: The entity type whose display mode options should be returned. Return value array An array of display mode labels, keyed by the display mode ID. File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 189 Class EntityDisplayR

EntityDisplayRepository::getAllViewModes

public EntityDisplayRepository::getAllViewModes() Gets the entity view mode info for all entity types. Return value array The view mode info for all entity types. Overrides EntityDisplayRepositoryInterface::getAllViewModes File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 70 Class EntityDisplayRepository Provides a repository for entity display objects (view modes and form modes). Namespace Drupal\Core\Entity Code public function getAllViewModes() { return $this->

EntityDisplayRepository::getAllFormModes

public EntityDisplayRepository::getAllFormModes() Gets the entity form mode info for all entity types. Return value array The form mode info for all entity types. Overrides EntityDisplayRepositoryInterface::getAllFormModes File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 84 Class EntityDisplayRepository Provides a repository for entity display objects (view modes and form modes). Namespace Drupal\Core\Entity Code public function getAllFormModes() { return $this->

EntityDisplayRepository::getAllDisplayModesByEntityType

protected EntityDisplayRepository::getAllDisplayModesByEntityType($display_type) Gets the entity display mode info for all entity types. Parameters string $display_type: The display type to be retrieved. It can be "view_mode" or "form_mode". Return value array The display mode info for all entity types. File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 104 Class EntityDisplayRepository Provides a repository for entity display objects (view modes and form modes). Namesp