You are here

protected function ConfigName::entityTypeManager in Update helper 8

Same name and namespace in other branches
  1. 2.x src/ConfigName.php \Drupal\update_helper\ConfigName::entityTypeManager()

Retrieves the entity manager service.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity manager service.

File

src/ConfigName.php, line 137

Class

ConfigName
Configuration name class for easier handling of configuration references.

Namespace

Drupal\update_helper

Code

protected function entityTypeManager() {
  if (!$this->entityTypeManager) {
    $this->entityTypeManager = \Drupal::service('entity_type.manager');
  }
  return $this->entityTypeManager;
}