You are here

public function ContentLoaderInterface::buildEntity in YAML Content 8

Same name and namespace in other branches
  1. 8.2 src/ContentLoader/ContentLoaderInterface.php \Drupal\yaml_content\ContentLoader\ContentLoaderInterface::buildEntity()

Build an entity from the provided content data.

Parameters

string $entity_type: The entity type.

array $content_data: The parsed content data.

Return value

\Drupal\Core\Entity\EntityInterface The entity returned after building from the parsed content data.

1 method overrides ContentLoaderInterface::buildEntity()
ContentLoader::buildEntity in src/ContentLoader/ContentLoader.php
Build an entity from the provided content data.

File

src/ContentLoader/ContentLoaderInterface.php, line 63

Class

ContentLoaderInterface
Interface for loading and parsing content from YAML files.

Namespace

Drupal\yaml_content\ContentLoader

Code

public function buildEntity($entity_type, array $content_data);