class Mail in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Annotation/Mail.php \Drupal\Core\Annotation\Mail
Defines a Mail annotation object.
Plugin Namespace: Plugin\Mail
For a working example, see \Drupal\Core\Mail\Plugin\Mail\PhpMail
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\Core\Annotation\Mail
Expanded class hierarchy of Mail
See also
\Drupal\Core\Mail\MailInterface
Related topics
1 string reference to 'Mail'
- core.data_types.schema.yml in core/
config/ schema/ core.data_types.schema.yml - core/config/schema/core.data_types.schema.yml
3 classes are annotated with Mail
- PhpMail in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ PhpMail.php - Defines the default Drupal mail backend, using PHP's native mail() function.
- TestMailCollector in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ TestMailCollector.php - Defines a mail backend that captures sent messages in the state system.
- TestPhpMailFailure in core/
modules/ system/ tests/ modules/ system_mail_failure_test/ src/ Plugin/ Mail/ TestPhpMailFailure.php - Defines a mail sending implementation that always fails.
File
- core/
lib/ Drupal/ Core/ Annotation/ Mail.php, line 25 - Contains \Drupal\Core\Annotation\Mail.
Namespace
Drupal\Core\AnnotationView source
class Mail extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the mail plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* A short description of the mail plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Mail:: |
public | property | A short description of the mail plugin. | |
Mail:: |
public | property | The plugin ID. | |
Mail:: |
public | property | The human-readable name of the mail plugin. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
2 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 1 |