Mail.php

Same filename in this branch
  1. 11.x core/lib/Drupal/Core/Annotation/Mail.php
Same filename in other branches
  1. 9 core/lib/Drupal/Core/Annotation/Mail.php
  2. 9 core/lib/Drupal/Component/Utility/Mail.php
  3. 8.9.x core/lib/Drupal/Core/Annotation/Mail.php
  4. 8.9.x core/lib/Drupal/Component/Utility/Mail.php
  5. 10 core/lib/Drupal/Core/Mail/Attribute/Mail.php
  6. 10 core/lib/Drupal/Core/Annotation/Mail.php

Namespace

Drupal\Core\Mail\Attribute

File

core/lib/Drupal/Core/Mail/Attribute/Mail.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Mail\Attribute;

use Drupal\Component\Plugin\Attribute\Plugin;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Defines a Mail attribute for plugin discovery.
 *
 * Plugin Namespace: Plugin\Mail
 *
 * For a working example, see \Drupal\Core\Mail\Plugin\Mail\PhpMail
 *
 * @see \Drupal\Core\Mail\MailInterface
 * @see \Drupal\Core\Mail\MailManager
 * @see plugin_api
 */
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) {
    }

}

Classes

Title Deprecated Summary
Mail Defines a Mail attribute for plugin discovery.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.