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