You are here

protected function NodeIsPromoted::doEvaluate in Rules 8.3

Checks if a node is promoted.

Parameters

\Drupal\node\NodeInterface $node: The node to check.

Return value

bool TRUE if the node is promoted.

File

src/Plugin/Condition/NodeIsPromoted.php, line 37

Class

NodeIsPromoted
Provides a 'Node is promoted' condition.

Namespace

Drupal\rules\Plugin\Condition

Code

protected function doEvaluate(NodeInterface $node) {
  return $node
    ->isPromoted();
}