public function BusinessRulesItemPluginInterface::getVariables in Business Rules 8
Same name and namespace in other branches
- 2.x src/Plugin/BusinessRulesItemPluginInterface.php \Drupal\business_rules\Plugin\BusinessRulesItemPluginInterface::getVariables()
Return a variable set with all used variables on the item.
If you are using variables in a textfield, you can use the regex as the following:
preg_match_all(BusinessRulesItemPluginInterface::VARIABLE_REGEX, $text, $variables);
The $variables array will be filled with all used variables at index [1]
Parameters
\Drupal\business_rules\ItemInterface $item: The business rule item.
Return value
\Drupal\business_rules\VariablesSet The variableSet with all variables used on the Item.
1 method overrides BusinessRulesItemPluginInterface::getVariables()
- BusinessRulesItemPluginBase::getVariables in src/
Plugin/ BusinessRulesItemPluginBase.php - Return a variable set with all used variables on the item.
File
- src/
Plugin/ BusinessRulesItemPluginInterface.php, line 104
Class
- BusinessRulesItemPluginInterface
- Interface BusinessRulesItemInterface.
Namespace
Drupal\business_rules\PluginCode
public function getVariables(ItemInterface $item);