public function ConfigActionsList::doLoad in Config Actions 8
Load data from the source.
Return value
array config data
Overrides ConfigActionsSourceBase::doLoad
File
- src/
Plugin/ ConfigActionsSource/ ConfigActionsList.php, line 38
Class
- ConfigActionsList
- Plugin for handling a list of source locations.
Namespace
Drupal\config_actions\Plugin\ConfigActionsSourceCode
public function doLoad() {
$data = [];
// Loop through sources and pick first success
foreach ($this->sourceId as $source) {
$data = $this->actionService
->loadSource($source, '', $this->sourceBase);
if (!empty($data)) {
break;
}
}
return $data;
}