function Mail::__construct

Same name in other branches
  1. 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

Mail
Defines a Mail attribute for plugin discovery.

Namespace

Drupal\Core\Mail\Attribute

Code

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.