interface RulesConditionHandlerInterface in Rules 7.2
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
- interface \RulesPluginHandlerInterface
- interface \RulesConditionHandlerInterface
Expanded class hierarchy of RulesConditionHandlerInterface
All classes that implement RulesConditionHandlerInterface
File
- includes/
rules.core.inc, line 2060 - Rules base classes and interfaces needed for any rule evaluation.
View source
interface RulesConditionHandlerInterface extends RulesPluginHandlerInterface {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RulesPluginHandlerInterface:: |
public | function | Checks whether the user has access to configure this element. | 1 |
RulesPluginHandlerInterface:: |
public | function | Returns an array of info assertions for the specified parameters. | 1 |
RulesPluginHandlerInterface:: |
public | function | Returns an array of required modules. | 1 |
RulesPluginHandlerInterface:: |
public | function | Alters the generated configuration form of the element. | 1 |
RulesPluginHandlerInterface:: |
public | function | Allows altering of the element's action/condition info. | 1 |
RulesPluginHandlerInterface:: |
public | function | Processes settings independent from a form submission. | 1 |
RulesPluginHandlerInterface:: |
public | function | Validates $settings independent from a form submission. | 1 |