interface RulesConditionHandlerInterface

Interface for implementing conditions 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_condition_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 RulesConditionHandlerInterface

All classes that implement RulesConditionHandlerInterface

File

includes/rules.core.inc, line 2075

View source
interface RulesConditionHandlerInterface extends RulesPluginHandlerInterface {

}