public function ConfigActionsFile::doLoad in Config Actions 8
Load data from the source.
Return value
array config data
Overrides ConfigActionsSourceBase::doLoad
File
- src/
Plugin/ ConfigActionsSource/ ConfigActionsFile.php, line 113
Class
- ConfigActionsFile
- Plugin for config source from files.
Namespace
Drupal\config_actions\Plugin\ConfigActionsSourceCode
public function doLoad() {
$this
->setMerge(TRUE);
list($filepath, $filename) = $this
->filePath($this->sourceId, $this->sourceBase);
$template_storage = new FileStorage($filepath, StorageInterface::DEFAULT_COLLECTION);
return $template_storage
->read($filename);
}