function Mail::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Mail/Attribute/Mail.php \Drupal\Core\Mail\Attribute\Mail::__construct()
Constructs a Mail attribute.
Parameters
string $id: The plugin ID.
\Drupal\Core\StringTranslation\TranslatableMarkup $label: The label of the plugin.
\Drupal\Core\StringTranslation\TranslatableMarkup|null $description: (optional) A description of the plugin.
class-string|null $deriver: (optional) The deriver class.
Overrides Plugin::__construct
File
-
core/
lib/ Drupal/ Core/ Mail/ Attribute/ Mail.php, line 36
Class
- Defines a Mail attribute for plugin discovery.
Namespace
Drupal\Core\Mail\AttributeCode
public function __construct(string $id, TranslatableMarkup $label, ?TranslatableMarkup $description = NULL, ?string $deriver = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.