function NodeInterface::setSticky
Same name in other branches
- 9 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setSticky()
- 8.9.x core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setSticky()
- 10 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setSticky()
Sets the node sticky status.
Parameters
bool $sticky: TRUE to set this node to sticky, FALSE to set it to not sticky.
Return value
$this The called node entity.
1 method overrides NodeInterface::setSticky()
- Node::setSticky in core/
modules/ node/ src/ Entity/ Node.php - Sets the node sticky status.
File
-
core/
modules/ node/ src/ NodeInterface.php, line 129
Class
- NodeInterface
- Provides an interface defining a node entity.
Namespace
Drupal\nodeCode
public function setSticky($sticky);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.