Drupal::entityTypeManager

public static Drupal::entityTypeManager()

Retrieves the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface 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');
}
doc_Drupal
2016-10-29 09:02:45
Comments
Leave a Comment

Please login to continue.