/** * Checks if a node is promoted. * * @param \Drupal\node\NodeInterface $node * The node to check. * * @return bool * TRUE if the node is promoted. */ protected function doEvaluate(NodeInterface $node) { return $node->isPromoted(); }