Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getActions()
 {
     $ids = \Drupal::entityQuery('rng_rule_component')->condition('rule', $this->id(), '=')->condition('type', 'action', '=')->execute();
     return array_merge($ids ? RuleComponent::loadMultiple($ids) : [], array_filter($this->components_unsaved, function ($component) {
         return $component->getType() == 'action';
     }));
 }