function NodeIsPromoted::doEvaluate
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\ConditionCode
protected function doEvaluate(NodeInterface $node) {
return $node->isPromoted();
}