You are here

public function ContentLoaderInterface::loadContent in YAML Content 8

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

Load all demo content for this loader.

Parameters

string $content_file: A file name for the content file to be loaded. The file is assumed to be located within a directory set by `setPath()`.

Return value

array An array of created entities.

1 method overrides ContentLoaderInterface::loadContent()
ContentLoader::loadContent in src/ContentLoader/ContentLoader.php
Load all demo content for this loader.

File

src/ContentLoader/ContentLoaderInterface.php, line 50

Class

ContentLoaderInterface
Interface for loading and parsing content from YAML files.

Namespace

Drupal\yaml_content\ContentLoader

Code

public function loadContent($content_file);