You are here

protected function EntityLoadHelper::getEntityDefinition in YAML Content 8

Load an entity type definition.

Parameters

$entity_type: The entity type ID.

Return value

\Drupal\Core\Entity\EntityTypeInterface|null The entity type definition or NULL if it could not be loaded.

1 call to EntityLoadHelper::getEntityDefinition()
EntityLoadHelper::identifyAttributeType in src/Service/EntityLoadHelper.php
Identify data keys as properties, fields, or other.

File

src/Service/EntityLoadHelper.php, line 339

Class

EntityLoadHelper
A helper class to support identification and loading of existing entities.

Namespace

Drupal\yaml_content\Service

Code

protected function getEntityDefinition($entity_type) {
  return $this
    ->getEntityTypeManager()
    ->getDefinition($entity_type);
}