You are here

interface ConfigActionsPluginInterface in Config Actions 8

Defines an interface for config actions plugins

Hierarchy

Expanded class hierarchy of ConfigActionsPluginInterface

All classes that implement ConfigActionsPluginInterface

File

src/ConfigActionsPluginInterface.php, line 8

Namespace

Drupal\config_actions
View source
interface ConfigActionsPluginInterface {

  /**
   * Return a transformed version of the source config tree.
   *
   * @param array $source
   * @return array
   */
  public function transform(array $source);

  /**
   * Execute the action for this plugin.
   *
   * @param array $action: a config_actions action
   * @return mixed
   *   FALSE if there was a problem executing the plugin action
   */
  public function execute(array $action);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigActionsPluginInterface::execute public function Execute the action for this plugin. 1
ConfigActionsPluginInterface::transform public function Return a transformed version of the source config tree. 1