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