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