You are here

public function Email::getMailService in Search API Saved Searches 8

Retrieves the mail service.

Return value

\Drupal\Core\Mail\MailManagerInterface The mail service.

File

src/Plugin/search_api_saved_searches/notification/Email.php, line 87

Class

Email
Provides e-mails as a notification mechanism.

Namespace

Drupal\search_api_saved_searches\Plugin\search_api_saved_searches\notification

Code

public function getMailService() {
  return $this->mailService ?: \Drupal::service('plugin.manager.mail');
}