You are here

protected function AndExpression::allowsMetadataAssertions in Rules 8.3

Determines whether child-expressions are allowed to assert metadata.

Return value

bool Whether child-expressions are allowed to assert metadata.

Overrides ExpressionContainerBase::allowsMetadataAssertions

See also

\Drupal\rules\Engine\ExpressionInterface::prepareExecutionMetadataState()

File

src/Plugin/RulesExpression/AndExpression.php, line 58

Class

AndExpression
Evaluates a group of conditions with a logical AND.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

protected function allowsMetadataAssertions() {

  // If the AND is not negated, all child-expressions must be executed - thus
  // assertions can be added it.
  return !$this
    ->isNegated();
}