You are here

public function Rule::getTriggerID in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Rule.php \Drupal\rng\Entity\Rule::getTriggerID()
  2. 3.x src/Entity/Rule.php \Drupal\rng\Entity\Rule::getTriggerID()

Gets the trigger ID for the rule.

Return value

string The trigger ID.

Overrides RuleInterface::getTriggerID

File

src/Entity/Rule.php, line 56

Class

Rule
Defines the event rule entity.

Namespace

Drupal\rng\Entity

Code

public function getTriggerID() {
  return $this
    ->get('trigger_id')->value;
}