protected function ContentLoader::getEntityTypeDefinition in YAML Content 8
Load an entity type definition.
Parameters
string $entity_type: The entity type id of the definition to load.
Return value
\Drupal\Core\Entity\EntityTypeInterface|null The entity type definition or NULL if the definition could not be loaded.
1 call to ContentLoader::getEntityTypeDefinition()
- ContentLoader::buildEntity in src/
ContentLoader/ ContentLoader.php - Build an entity from the provided content data.
File
- src/
ContentLoader/ ContentLoader.php, line 261
Class
- ContentLoader
- ContentLoader class for parsing and importing YAML content.
Namespace
Drupal\yaml_content\ContentLoaderCode
protected function getEntityTypeDefinition($entity_type) {
return $this
->getEntityTypeManager()
->getDefinition($entity_type);
}