You are here

public function Modal::setBody in Modal 5.0.x

Same name and namespace in other branches
  1. 4.0.x src/Entity/Modal.php \Drupal\modal_page\Entity\Modal::setBody()
  2. 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\Entity

Code

public function setBody($body) {
  $this
    ->set('body', $body);
  return $this;
}