You are here

protected function OrExpression::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/OrExpression.php, line 45

Class

OrExpression
Evaluates a group of conditions with a logical OR.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

protected function allowsMetadataAssertions() {

  // We cannot guarantee child expressions are executed, thus we cannot allow
  // metadata assertions.
  return FALSE;
}