Example #1
0
 /**
  * {@inheritdoc}
  */
 public function executeWithState(ExecutionStateInterface $state)
 {
     // Evaluate the rule's conditions.
     if (!$this->conditions->isEmpty() && !$this->conditions->executeWithState($state)) {
         // Do not run the actions if the conditions are not met.
         return;
     }
     $this->actions->executeWithState($state);
 }