interface BusinessRulesVariablePluginInterface in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Plugin/BusinessRulesVariablePluginInterface.php \Drupal\business_rules\Plugin\BusinessRulesVariablePluginInterface
Defines an interface for Business rules variable plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\business_rules\Plugin\BusinessRulesItemPluginInterface
- interface \Drupal\business_rules\Plugin\BusinessRulesVariablePluginInterface
- interface \Drupal\business_rules\Plugin\BusinessRulesItemPluginInterface
Expanded class hierarchy of BusinessRulesVariablePluginInterface
All classes that implement BusinessRulesVariablePluginInterface
File
- src/
Plugin/ BusinessRulesVariablePluginInterface.php, line 11
Namespace
Drupal\business_rules\PluginView source
interface BusinessRulesVariablePluginInterface extends BusinessRulesItemPluginInterface {
/**
* Evaluate the variable.
*
* @param \Drupal\business_rules\Entity\Variable $variable
* The variable to be evaluated.
* @param \Drupal\business_rules\Events\BusinessRulesEvent $event
* The dispatched event.
*
* @return \Drupal\business_rules\VariableObject|\Drupal\business_rules\VariablesSet
* The evaluated variables.
*/
public function evaluate(Variable $variable, BusinessRulesEvent $event);
/**
* Change the variable details box.
*
* Give a chance to each variable plugin to change the variable details row on
* Available Variables Box.
*
* @param \Drupal\business_rules\Entity\Variable $variable
* The variable.
* @param array $row
* The row which contains the variable.
*/
public function changeDetails(Variable $variable, array &$row);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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 | Process the item replacing the variables by it's values. | 2 |
BusinessRulesItemPluginInterface:: |
public | function | Plugin form validator. | 1 |
BusinessRulesItemPluginInterface:: |
constant | |||
BusinessRulesVariablePluginInterface:: |
public | function | Change the variable details box. | 1 |
BusinessRulesVariablePluginInterface:: |
public | function | Evaluate the variable. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |