public function BusinessRulesItemBase::getVariables in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/BusinessRulesItemBase.php \Drupal\business_rules\Entity\BusinessRulesItemBase::getVariables()
Get the variables being used by the item.
Return value
\Drupal\business_rules\VariablesSet The variables being used by the item.
Overrides ItemInterface::getVariables
File
- src/
Entity/ BusinessRulesItemBase.php, line 286
Class
- BusinessRulesItemBase
- Class Item.
Namespace
Drupal\business_rules\EntityCode
public function getVariables() {
$item_type = $this->itemManager
->getDefinition($this
->getType());
$reflection = new \ReflectionClass($item_type['class']);
$defined_item = $reflection
->newInstance($item_type, $item_type['id'], $item_type);
$variables = $defined_item
->getVariables($this);
return $variables;
}