public function PopupOnLoad::setPublished in Popup On Load 8
Sets the published status of a Popup On Load.
Parameters
bool $published: TRUE to set this Popup On Load to published, FALSE to set it to unpublished.
Return value
\Drupal\popup_onload\Entity\PopupOnLoadInterface The called Popup On Load entity.
Overrides PopupOnLoadInterface::setPublished
File
- src/
Entity/ PopupOnLoad.php, line 140
Class
- PopupOnLoad
- Defines the Popup On Load entity.
Namespace
Drupal\popup_onload\EntityCode
public function setPublished($published) {
$this
->set('status', $published ? TRUE : FALSE);
return $this;
}