예제 #1
0
파일: Rule.php 프로젝트: DrupalTV/DrupalTV
 /**
  * {@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);
 }