public static function Drupal::entityTypeManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal.php \Drupal::entityTypeManager()
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
2 calls to Drupal::entityTypeManager()
- DrupalTest::testEntityTypeManager in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the entityTypeManager() method.
- Entity::entityTypeManager in core/
lib/ Drupal/ Core/ Entity/ Entity.php - Gets the entity type manager.
File
- core/
lib/ Drupal.php, line 272 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function entityTypeManager() {
return static::getContainer()
->get('entity_type.manager');
}