You are here

public function SiteSettingEntityInterface::setPublished in Site Settings and Labels 8

Sets the published status of a Site Setting.

Parameters

bool $published: TRUE to set this Site Setting to published, FALSE to set it to unpublished.

Return value

\Drupal\site_settings\SiteSettingEntityInterface The called Site Setting entity.

1 method overrides SiteSettingEntityInterface::setPublished()
SiteSettingEntity::setPublished in src/Entity/SiteSettingEntity.php
Sets the published status of a Site Setting.

File

src/SiteSettingEntityInterface.php, line 83

Class

SiteSettingEntityInterface
Provides an interface for defining Site Setting entities.

Namespace

Drupal\site_settings

Code

public function setPublished($published);