You are here

public function NodeInterface::setSticky in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

\Drupal\node\NodeInterface 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 101
Contains \Drupal\node\NodeInterface.

Class

NodeInterface
Provides an interface defining a node entity.

Namespace

Drupal\node

Code

public function setSticky($sticky);