public function Node::isPromoted in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::isPromoted()
Returns the node promotion status.
Return value
bool TRUE if the node is promoted.
Overrides NodeInterface::isPromoted
File
- core/
modules/ node/ src/ Entity/ Node.php, line 220 - Contains \Drupal\node\Entity\Node.
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public function isPromoted() {
return (bool) $this
->get('promote')->value;
}