public function ContentLoader::getEntityTypeManager in YAML Content 8
Get the EntityTypeManager service.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The EntityTypeManager service.
File
- src/
ContentLoader/ ContentLoader.php, line 139
Class
- ContentLoader
- ContentLoader class for parsing and importing YAML content.
Namespace
Drupal\yaml_content\ContentLoaderCode
public function getEntityTypeManager() {
// Lazy load the entity type manager service.
if (!isset($this->entityTypeManager)) {
$this->entityTypeManager = $this->container
->get('entity_type.manager');
}
return $this->entityTypeManager;
}