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
- Provides e-mails as a notification mechanism.
Namespace
Drupal\search_api_saved_searches\Plugin\search_api_saved_searches\notificationCode
public function getMailService() {
return $this->mailService ?: \Drupal::service('plugin.manager.mail');
}