You are here

public function Template::setBody in Workbench Email 2.x

Same name and namespace in other branches
  1. 8 src/Entity/Template.php \Drupal\workbench_email\Entity\Template::setBody()

Sets the body.

Parameters

string[] $body: Body with keys value and format.

Return value

self Called instance

Overrides TemplateInterface::setBody

File

src/Entity/Template.php, line 146

Class

Template
Defines the Email Template entity.

Namespace

Drupal\workbench_email\Entity

Code

public function setBody(array $body) {
  $this->body = $body;
  return $this;
}