public function EasyEmail::setPlainBody in Easy Email 8
Same name and namespace in other branches
- 2.0.x src/Entity/EasyEmail.php \Drupal\easy_email\Entity\EasyEmail::setPlainBody()
@inheritDoc
Overrides EasyEmailInterface::setPlainBody
File
- src/
Entity/ EasyEmail.php, line 638
Class
- EasyEmail
- Defines the Email entity.
Namespace
Drupal\easy_email\EntityCode
public function setPlainBody($text) {
if ($this
->hasField('body_plain')) {
$this
->set('body_plain', $text);
}
return $this;
}