public function StatusInterface::setPublished in Heartbeat 8
Sets the published status of a Status.
Parameters
bool $published: TRUE to set this Status to published, FALSE to set it to unpublished.
Return value
\Drupal\statusmessage\StatusInterface The called Status entity.
1 method overrides StatusInterface::setPublished()
- Status::setPublished in modules/
statusmessage/ src/ Entity/ Status.php - Sets the published status of a Status.
File
- modules/
statusmessage/ src/ StatusInterface.php, line 81
Class
- StatusInterface
- Provides an interface for defining Status entities.
Namespace
Drupal\statusmessageCode
public function setPublished($published);