protected function ConfigName::entityTypeManager in Update helper 2.x
Same name and namespace in other branches
- 8 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_helperCode
protected function entityTypeManager() {
if (!$this->entityTypeManager) {
$this->entityTypeManager = \Drupal::service('entity_type.manager');
}
return $this->entityTypeManager;
}