class EntityTypeRepository
Provides helper methods for loading entity types.
Hierarchy
- class \Drupal\Core\Entity\EntityTypeRepository implements EntityTypeRepositoryInterface uses StringTranslationTrait
See also
\Drupal\Core\Entity\EntityTypeManagerInterface
File
- core/lib/Drupal/Core/Entity/EntityTypeRepository.php, line 14
Namespace
Drupal\Core\EntityMembers
Name | Modifiers | Type | Description |
---|---|---|---|
EntityTypeRepository::$classNameEntityTypeMap | protected | property | Contains cached mappings of class names to entity types. |
EntityTypeRepository::$entityTypeManager | protected | property | The entity type manager. |
EntityTypeRepository::clearCachedDefinitions | public | function | Clear the static cache. Overrides EntityTypeRepositoryInterface::clearCachedDefinitions |
EntityTypeRepository::getEntityTypeFromClass | public | function | Gets the entity type ID based on the class that is called on. Overrides EntityTypeRepositoryInterface::getEntityTypeFromClass |
EntityTypeRepository::getEntityTypeLabels | public | function | Builds a list of entity type labels suitable for a Form API options list. Overrides EntityTypeRepositoryInterface::getEntityTypeLabels |
EntityTypeRepository::__construct | public | function | Constructs a new EntityTypeRepository. |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. |
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. |
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. |
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityTypeRepository.php/class/EntityTypeRepository/8.1.x