You are here

protected function NodeIsSticky::doEvaluate in Rules 8.3

Check if the given node is sticky.

Parameters

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

Return value

bool TRUE if the node is sticky.

File

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

Class

NodeIsSticky
Provides a 'Node is sticky' condition.

Namespace

Drupal\rules\Plugin\Condition

Code

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