You are here

public function ConfigActionsServiceInterface::importAction in Config Actions 8

Process a specific action id from a given module

Parameters

string $module_name:

string $action_id: if empty, process all actions in the module. Nested actions can be separated with a colon, such as "action:subaction"

string $file: if empty, process all actions files in the module. Otherwise only process actions in the named file. Just the file, not the path. The .yml extension is optional, but you cannot reference non *.yml files.

array $variables: list of action variables to override imported behavior.

Return value

mixed Returns data imported or NULL if nothing was found. Data is keyed by the name of the action file that was found.

1 method overrides ConfigActionsServiceInterface::importAction()
ConfigActionsService::importAction in src/ConfigActionsService.php
Process a specific action id from a given module

File

src/ConfigActionsServiceInterface.php, line 59

Class

ConfigActionsServiceInterface
Defines an interface for config actions service

Namespace

Drupal\config_actions

Code

public function importAction($module_name, $action_id = '', $file = '', $variables = []);