public function NodeInterface::setPromoted in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setPromoted()
- 9 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.
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);