src/Core/Entity/EntityTypeManagerTrait.php
public function getEntityTypeManager() {
    if (empty($this->entityTypeManager)) {
      $this->entityTypeManager = \Drupal::entityTypeManager();
    }
    return $this->entityTypeManager;
  }
public function getEntityTypeManager() {
    if (empty($this->entityTypeManager)) {
      $this->entityTypeManager = \Drupal::entityTypeManager();
    }
    return $this->entityTypeManager;
  }
public function getEntityTypeManager ( ) { if ( empty ( $ this -> entityTypeManager ) ) { $ this -> entityTypeManager = \ Drupal :: entityTypeManager ( ) ; } return $ this -> entityTypeManager ; }
Gets the entity type manager.

@return \Drupal\Core\Entity\EntityTypeManagerInterface
The entity type manager.
Gets the entity type manager .