interface BusinessRulesConditionPluginInterface in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Plugin/BusinessRulesConditionPluginInterface.php \Drupal\business_rules\Plugin\BusinessRulesConditionPluginInterface
Defines an interface for Business rules Condition plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\business_rules\Plugin\BusinessRulesItemPluginInterface
- interface \Drupal\business_rules\Plugin\BusinessRulesConditionPluginInterface
- interface \Drupal\business_rules\Plugin\BusinessRulesItemPluginInterface
Expanded class hierarchy of BusinessRulesConditionPluginInterface
All classes that implement BusinessRulesConditionPluginInterface
File
- src/
Plugin/ BusinessRulesConditionPluginInterface.php, line 12
Namespace
Drupal\business_rules\PluginView source
interface BusinessRulesConditionPluginInterface extends BusinessRulesItemPluginInterface {
/**
* Process the condition.
*
* @param \Drupal\business_rules\ConditionInterface $condition
* The configured condition.
* @param \Drupal\business_rules\Events\BusinessRulesEvent $event
* The event that has triggered the condition.
*
* @return bool
* Boolean value that indicates if the condition is true.
*/
public function process(ConditionInterface $condition, BusinessRulesEvent $event);
/**
* Process the item the variables for it's values.
*
* @param mixed $content
* The item to be replaced by the variable value.
* @param \Drupal\business_rules\VariablesSet $event_variables
* Array of Variables provided by the event.
*
* @return mixed
* The processed content, replacing the variables tokens for it's values.
*/
public function processVariables($content, VariablesSet $event_variables);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BusinessRulesConditionPluginInterface:: |
public | function | Process the condition. | 1 |
BusinessRulesConditionPluginInterface:: |
public | function |
Process the item the variables for it's values. Overrides BusinessRulesItemPluginInterface:: |
|
BusinessRulesItemPluginInterface:: |
public | function | Form constructor. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Provide a description of the item. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Get the redirect url for the item edit-form route. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Provide the group of the item. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Get the redirect url for the item collection route. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Return the form array. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Return a variable set with all used variables on the item. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Extract the variables from the plugin settings. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Process the item settings before it's saved. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Process the tokens on the settings property for the item. | 1 |
BusinessRulesItemPluginInterface:: |
public | function | Plugin form validator. | 1 |
BusinessRulesItemPluginInterface:: |
constant | |||
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |