interface RulesActionHandlerInterface

Interface for implementing actions via classes.

In addition to the interface an execute() and a static getInfo() method must be implemented. The static getInfo() method has to return the info as returned by hook_rules_action_info() but including an additional 'name' key, specifying the plugin name. The execute method is the equivalent to the usual execution callback and gets the parameters passed as specified in the info array.

See RulesNodeConditionType for an example and rules_discover_plugins() for information about class discovery.

Hierarchy

Expanded class hierarchy of RulesActionHandlerInterface

All classes that implement RulesActionHandlerInterface

File

includes/rules.core.inc, line 2090

View source
interface RulesActionHandlerInterface extends RulesPluginHandlerInterface {

}