Provides a class for handling assembly and dispatch of contact mail messages.
Hierarchy
- class \Drupal\contact\MailHandler implements MailHandlerInterface uses StringTranslationTrait
File
- core/modules/contact/src/MailHandler.php, line 16
Namespace
Drupal\contact
Members
Name | Modifiers | Type | Description |
---|---|---|---|
MailHandler::$languageManager | protected | property | Language manager service. |
MailHandler::$logger | protected | property | Logger service. |
MailHandler::$mailManager | protected | property | Mail manager service. |
MailHandler::$userStorage | protected | property | The user entity storage handler. |
MailHandler::sendMailMessages | public | function | Sends mail messages as appropriate for a given Message form submission. Overrides MailHandlerInterface::sendMailMessages |
MailHandler::__construct | public | function | Constructs a new \Drupal\contact\MailHandler object. |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. |
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. |
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. |
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
Please login to continue.