public function KanbanLog::setPublished in Content Planner 8
Sets the published status of a Kanban Log.
Parameters
bool $published: TRUE to set this Kanban Log to published, FALSE to set it to unpublished.
Return value
\Drupal\content_kanban\Entity\KanbanLogInterface The called Kanban Log entity.
Overrides KanbanLogInterface::setPublished
File
- modules/
content_kanban/ src/ Entity/ KanbanLog.php, line 140
Class
- KanbanLog
- Defines the Kanban Log entity.
Namespace
Drupal\content_kanban\EntityCode
public function setPublished($published) {
$this
->set('status', $published ? TRUE : FALSE);
return $this;
}