function AndExpression::allowsMetadataAssertions

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