You are here

public function HTMLMailSystem::getDefaultSiteName in HTML Mail 8

Same name and namespace in other branches
  1. 8.3 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 138

Class

HTMLMailSystem
Modify the Drupal mail system to use HTMLMail when sending emails.

Namespace

Drupal\htmlmail\Plugin\Mail

Code

public function getDefaultSiteName() {
  $site_name = $this->systemConfig
    ->get('site_name');
  return $site_name ?: 'Drupal';
}