You are here

public function BusinessRulesItemBase::getReactOnEvents in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Entity/BusinessRulesItemBase.php \Drupal\business_rules\Entity\BusinessRulesItemBase::getReactOnEvents()

Get the reactsOn ids applicable for the item.

Return value

array Context: Array of reactsOn ids applicable for the item.

Overrides ItemInterface::getReactOnEvents

File

src/Entity/BusinessRulesItemBase.php, line 122

Class

BusinessRulesItemBase
Class Item.

Namespace

Drupal\business_rules\Entity

Code

public function getReactOnEvents() {
  $definition = $this->itemManager
    ->getDefinition($this
    ->getType());
  if (array_key_exists('reactsOnIds', $definition)) {
    return $definition['reactsOnIds'];
  }
  else {
    return [];
  }
}