class Mail
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Mail/Attribute/Mail.php \Drupal\Core\Mail\Attribute\Mail
Defines a Mail attribute for plugin discovery.
Plugin Namespace: Plugin\Mail
For a working example, see \Drupal\Core\Mail\Plugin\Mail\PhpMail
Hierarchy
- class \Drupal\Core\Mail\Attribute\Mail implements \Drupal\Component\Plugin\Attribute\Plugin
Expanded class hierarchy of Mail
See also
\Drupal\Core\Mail\MailInterface
\Drupal\Core\Mail\MailManager
plugin_api
1 file declares its use of Mail
- SymfonyMailer.php in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ SymfonyMailer.php
File
-
core/
lib/ Drupal/ Core/ Mail/ Attribute/ Mail.php, line 21
Namespace
Drupal\Core\Mail\AttributeView source
class Mail extends Plugin {
/**
* Constructs a Mail attribute.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $label
* The label of the plugin.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* (optional) A description of the plugin.
* @param class-string|null $deriver
* (optional) The deriver class.
*/
public function __construct(public readonly string $id, public readonly TranslatableMarkup $label, public readonly ?TranslatableMarkup $description = NULL, public readonly ?string $deriver = NULL) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Mail::__construct | public | function | Constructs a Mail attribute. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.