NodeInterface::setPromoted

public NodeInterface::setPromoted($promoted)

Sets the node promoted status.

Parameters

bool $promoted: TRUE to set this node to promoted, FALSE to set it to not promoted.

Return value

\Drupal\node\NodeInterface The called node entity.

File

core/modules/node/src/NodeInterface.php, line 78

Class

NodeInterface
Provides an interface defining a node entity.

Namespace

Drupal\node

Code

public function setPromoted($promoted);
doc_Drupal
2016-10-29 09:30:56
Comments
Leave a Comment

Please login to continue.