public NodeInterface::setSticky($sticky)
Sets the node sticky status.
Parameters
bool $sticky: TRUE to set this node to sticky, FALSE to set it to not sticky.
Return value
\Drupal\node\NodeInterface The called node entity.
File
- core/modules/node/src/NodeInterface.php, line 97
Class
- NodeInterface
- Provides an interface defining a node entity.
Namespace
Drupal\node
Code
public function setSticky($sticky);
Please login to continue.