public function ConfigActionsInclude::execute in Config Actions 8
Main execute to perform the include
Overrides ConfigActionsPluginBase::execute
File
- src/
Plugin/ ConfigActions/ ConfigActionsInclude.php, line 65
Class
- ConfigActionsInclude
- Plugin for including an action from another module.
Namespace
Drupal\config_actions\Plugin\ConfigActionsCode
public function execute(array $action) {
if (isset($this->replace)) {
$action['replace'] = NestedArray::mergeDeepArray([
$this->replace,
isset($action['replace']) ? $action['replace'] : [],
], TRUE);
}
$action = $this
->cleanAction($action);
return $this->actionService
->importAction($this->module, $this->action, $this->file, $action);
}