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