function AndExpression::allowsMetadataAssertions

Determines whether child-expressions are allowed to assert metadata.

Return value

bool Whether child-expressions are allowed to assert metadata.

Overrides ExpressionContainerBase::allowsMetadataAssertions

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();
}