function EntityTypeRepositoryInterface::getEntityTypeLabels
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeRepositoryInterface.php \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeLabels()
- 10 core/lib/Drupal/Core/Entity/EntityTypeRepositoryInterface.php \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeLabels()
- 11.x core/lib/Drupal/Core/Entity/EntityTypeRepositoryInterface.php \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeLabels()
Builds a list of entity type labels suitable for a Form API options list.
Parameters
bool $group: (optional) Whether to group entity types by plugin group (e.g. 'content', 'config'). Defaults to FALSE.
Return value
array An array of entity type labels, keyed by entity type name.
2 methods override EntityTypeRepositoryInterface::getEntityTypeLabels()
- EntityManager::getEntityTypeLabels in core/
lib/ Drupal/ Core/ Entity/ EntityManager.php - EntityTypeRepository::getEntityTypeLabels in core/
lib/ Drupal/ Core/ Entity/ EntityTypeRepository.php - Builds a list of entity type labels suitable for a Form API options list.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeRepositoryInterface.php, line 20
Class
- EntityTypeRepositoryInterface
- Provides an interface for helper methods for loading entity types.
Namespace
Drupal\Core\EntityCode
public function getEntityTypeLabels($group = FALSE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.