/** * Verifies that the given expression is valid with the defined context. * * @return \Drupal\rules\Engine\IntegrityViolationList * A list object containing \Drupal\rules\Engine\IntegrityViolation objects. */ public function checkIntegrity() { $data_definitions = []; foreach ($this->contextDefinitions as $name => $context_definition) { $data_definitions[$name] = $context_definition->getDataDefinition(); } $metadata_state = ExecutionMetadataState::create($data_definitions); return $this->expression->checkIntegrity($metadata_state); }
/** * Verifies that the given expression is valid with the defined context. * * @return \Drupal\rules\Engine\IntegrityViolationList * A list object containing \Drupal\rules\Engine\IntegrityViolation objects. */ public function checkIntegrity() { $metadata_state = $this->getMetadataState(); return $this->expression->checkIntegrity($metadata_state); }