protected function ContentLoader::processDependency in YAML Content 8
Process a file flagged as a dependency.
Parameters
string $dependency: The dependent file that needs to be imported as well.
1 call to ContentLoader::processDependency()
- ContentLoader::populateField in src/
ContentLoader/ ContentLoader.php - Populate field content into the provided field.
File
- src/
ContentLoader/ ContentLoader.php, line 574
Class
- ContentLoader
- ContentLoader class for parsing and importing YAML content.
Namespace
Drupal\yaml_content\ContentLoaderCode
protected function processDependency($dependency) {
$sub_loader = self::create($this->container);
$sub_loader
->setContentPath($this->path);
$sub_loader
->loadContent($dependency, $this
->existenceCheck());
}