public function Template::setBody in Workbench Email 8
Same name and namespace in other branches
- 2.x 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\EntityCode
public function setBody(array $body) {
$this->body = $body;
return $this;
}