protected function ConfigActionsService::readActions in Config Actions 8
Read a config_actions file and return the decoded yml data
Parameters
string $filename:
Return value
array
2 calls to ConfigActionsService::readActions()
- ConfigActionsService::importAction in src/
ConfigActionsService.php - Process a specific action id from a given module
- ConfigActionsService::listAll in src/
ConfigActionsService.php - Return a list of actions within a module
File
- src/
ConfigActionsService.php, line 128
Class
- ConfigActionsService
- Base class for config_actions plugins.
Namespace
Drupal\config_actionsCode
protected function readActions($filename) {
if (file_exists($filename)) {
return Yaml::decode(file_get_contents($filename));
}
return [];
}