function EntityPublishedInterface::setPublished
Sets the entity as published.
Return value
$this
See also
\Drupal\Core\Entity\EntityPublishedInterface::setUnpublished()
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityPublishedInterface.php, line 27
Class
- EntityPublishedInterface
- Provides an interface for access to an entity's published state.
Namespace
Drupal\Core\EntityCode
public function setPublished();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.