You are here

public function ProcessedContentLoader::loadContent in YAML Content 8.2

Load all demo content for a set of parsed data.

Parameters

array $content_data: The parsed content structure to be imported.

Return value

array An array of loaded entities from the content data.

Overrides ContentLoaderBase::loadContent

See also

\Drupal\yaml_content\ContentLoader\ContentLoaderInterface::parseContent()

File

src/ContentLoader/ProcessedContentLoader.php, line 51

Class

ProcessedContentLoader
A ContentLoader supporting processing of content through plugins.

Namespace

Drupal\yaml_content\ContentLoader

Code

public function loadContent($save = TRUE) {
  $content_context = [];
  $this
    ->preprocessData($this->parsedContent, $content_context);
  $loaded = parent::loadContent($save);
  $this
    ->postprocessData($this->parsedContent, $loaded, $content_context);
  return $loaded;
}