You are here

public function HomeboxLayout::setPublished in Homebox 8

Sets the published status of a Homebox Layout.

Parameters

bool $published: TRUE to set this Homebox Layout to published, FALSE to set it to unpublished.

Return value

$this

Overrides HomeboxLayoutInterface::setPublished

File

src/Entity/HomeboxLayout.php, line 194

Class

HomeboxLayout
Defines the Homebox Layout entity.

Namespace

Drupal\homebox\Entity

Code

public function setPublished($published) {
  $this
    ->set('status', $published ? TRUE : FALSE);
  return $this;
}