NodeInterface::setPublished

public NodeInterface::setPublished($published)

Sets the published status of a node..

Parameters

bool $published: TRUE to set this node to published, FALSE to set it to unpublished.

Return value

\Drupal\node\NodeInterface The called node entity.

File

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

Class

NodeInterface
Provides an interface defining a node entity.

Namespace

Drupal\node

Code

1
public function setPublished($published);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.