public function Email::setBodyFormat in Courier 8
Same name and namespace in other branches
- 2.x src/Entity/Email.php \Drupal\courier\Entity\Email::setBodyFormat()
Sets the email body format.
Parameters
string $format: The email body format.
Return value
\Drupal\courier\EmailInterface Returns email for chaining.
Overrides EmailInterface::setBodyFormat
File
- src/
Entity/ Email.php, line 116 - Contains \Drupal\courier\Entity\Email.
Class
- Defines storage for a composed email.
Namespace
Drupal\courier\EntityCode
public function setBodyFormat($format) {
$this
->get('body')->format = $format;
return $this;
}