class Mail
Same name in this branch
- 11.x core/lib/Drupal/Core/Annotation/Mail.php \Drupal\Core\Annotation\Mail
Same name in other branches
- 9 core/lib/Drupal/Core/Annotation/Mail.php \Drupal\Core\Annotation\Mail
- 9 core/lib/Drupal/Component/Utility/Mail.php \Drupal\Component\Utility\Mail
- 8.9.x core/lib/Drupal/Core/Annotation/Mail.php \Drupal\Core\Annotation\Mail
- 8.9.x core/lib/Drupal/Component/Utility/Mail.php \Drupal\Component\Utility\Mail
- 10 core/lib/Drupal/Core/Mail/Attribute/Mail.php \Drupal\Core\Mail\Attribute\Mail
- 10 core/lib/Drupal/Core/Annotation/Mail.php \Drupal\Core\Annotation\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\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
Expanded class hierarchy of Mail
See also
\Drupal\Core\Mail\MailInterface
6 files declare their use of Mail
- MailManager.php in core/
lib/ Drupal/ Core/ Mail/ MailManager.php - PhpMail.php in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ PhpMail.php - SymfonyMailer.php in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ SymfonyMailer.php - TestHtmlMailCollector.php in core/
modules/ system/ tests/ modules/ mail_html_test/ src/ Plugin/ Mail/ TestHtmlMailCollector.php - TestMailCollector.php in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ TestMailCollector.php
60 string references to 'Mail'
- AccountForm::flagViolations in core/
modules/ user/ src/ AccountForm.php - AccountForm::form in core/
modules/ user/ src/ AccountForm.php - AccountForm::getEditedFieldNames in core/
modules/ user/ src/ AccountForm.php - AccountSettingsForm::buildForm in core/
modules/ user/ src/ AccountSettingsForm.php - Form constructor.
- ArbitraryRebuildTest::testUserRegistrationMultipleField in core/
modules/ system/ tests/ src/ Functional/ Form/ ArbitraryRebuildTest.php - Tests a rebuild caused by a multiple value field.
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(string $id, TranslatableMarkup $label, ?TranslatableMarkup $description = NULL, ?string $deriver = NULL) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
AttributeBase::$class | protected | property | The class used for this attribute class. | ||
AttributeBase::$provider | protected | property | The provider of the attribute class. | ||
AttributeBase::get | public | function | Overrides AttributeInterface::get | 6 | |
AttributeBase::getClass | public | function | Overrides AttributeInterface::getClass | 1 | |
AttributeBase::getId | public | function | Overrides AttributeInterface::getId | ||
AttributeBase::getProvider | public | function | Overrides AttributeInterface::getProvider | ||
AttributeBase::setClass | public | function | Overrides AttributeInterface::setClass | 1 | |
AttributeBase::setProvider | public | function | Overrides AttributeInterface::setProvider | ||
Mail::__construct | public | function | Constructs a Mail attribute. | Overrides Plugin::__construct |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.