function RulesComponent::checkIntegrity

Verifies that the given expression is valid with the defined context.

Return value

\Drupal\rules\Engine\IntegrityViolationList A list object containing \Drupal\rules\Engine\IntegrityViolation objects.

File

src/Engine/RulesComponent.php, line 288

Class

RulesComponent
Handles executable Rules components.

Namespace

Drupal\rules\Engine

Code

public function checkIntegrity() {
    $metadata_state = $this->getMetadataState();
    return $this->expression
        ->checkIntegrity($metadata_state);
}