public function Modal::setPublished in Modal 4.0.x
Same name and namespace in other branches
- 5.0.x src/Entity/Modal.php \Drupal\modal_page\Entity\Modal::setPublished()
- 4.1.x src/Entity/Modal.php \Drupal\modal_page\Entity\Modal::setPublished()
Set Published.
Overrides ModalInterface::setPublished
File
- src/
Entity/ Modal.php, line 627
Class
- Modal
- Defines the Modal entity.
Namespace
Drupal\modal_page\EntityCode
public function setPublished($published) {
$this
->set('published', $published);
return $this;
}