protected function EntityLoadHelper::getEntityTypeManager in YAML Content 8
Get the EntityTypeManager service.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The EntityTypeManager service.
File
- src/
Service/ EntityLoadHelper.php, line 157
Class
- EntityLoadHelper
- A helper class to support identification and loading of existing entities.
Namespace
Drupal\yaml_content\ServiceCode
protected function getEntityTypeManager() {
// Lazy load the entity type manager service.
if (!isset($this->entityTypeManager)) {
$this->entityTypeManager = $this->container
->get('entity_type.manager');
}
return $this->entityTypeManager;
}