public function HtmlMailSystem::getDefaultSiteName in HTML Mail 8.3
Same name and namespace in other branches
- 8 src/Plugin/Mail/HTMLMailSystem.php \Drupal\htmlmail\Plugin\Mail\HTMLMailSystem::getDefaultSiteName()
Retrieves the site name.
First from Drupal configuration and then set as Drupal.
Return value
string The site name.
1 call to HtmlMailSystem::getDefaultSiteName()
- HtmlMailSystem::format in src/
Plugin/ Mail/ HtmlMailSystem.php - Format emails according to module settings.
File
- src/
Plugin/ Mail/ HtmlMailSystem.php, line 182
Class
- HtmlMailSystem
- Modify the Drupal mail system to use HTML Mail when sending emails.
Namespace
Drupal\htmlmail\Plugin\MailCode
public function getDefaultSiteName() {
$site_name = $this->systemConfig
->get('site_name');
return $site_name ?: 'Drupal';
}