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