public function BusinessRule::getReactsOnLabel in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Entity/BusinessRule.php \Drupal\business_rules\Entity\BusinessRule::getReactsOnLabel()
The label of the trigger that will start the rule.
The reacts on event label for the rule.
Overrides BusinessRuleInterface::getReactsOnLabel
File
- src/
Entity/ BusinessRule.php, line 408
Class
- BusinessRule
- Defines the Rule entity.
Namespace
Drupal\business_rules\EntityCode
public function getReactsOnLabel() {
$reacts = self::getEventTypes();
foreach ($reacts as $react) {
foreach ($react as $key => $value) {
if ($key == $this
->getReactsOn()) {
return $value;
}
}
}
return '';
}