You are here

public function ContentLoaderInterface::parseContent in YAML Content 8

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

Parse the given yaml content file into an array.

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 The parsed content array from the file.

1 method overrides ContentLoaderInterface::parseContent()
ContentLoader::parseContent in src/ContentLoader/ContentLoader.php
Parse the given yaml content file into an array.

File

src/ContentLoader/ContentLoaderInterface.php, line 38

Class

ContentLoaderInterface
Interface for loading and parsing content from YAML files.

Namespace

Drupal\yaml_content\ContentLoader

Code

public function parseContent($content_file);