public function NodeInterface::setPublished in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setPublished()
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.
1 method overrides NodeInterface::setPublished()
- Node::setPublished in core/
modules/ node/ src/ Entity/ Node.php - Sets the published status of a node..
File
- core/
modules/ node/ src/ NodeInterface.php, line 122 - Contains \Drupal\node\NodeInterface.
Class
- NodeInterface
- Provides an interface defining a node entity.
Namespace
Drupal\nodeCode
public function setPublished($published);