function hook_mail_backend_info_alter

Same name in other branches
  1. 9 core/core.api.php \hook_mail_backend_info_alter()
  2. 10 core/core.api.php \hook_mail_backend_info_alter()
  3. 11.x core/core.api.php \hook_mail_backend_info_alter()

Alter the list of mail backend plugin definitions.

Parameters

array $info: The mail backend plugin definitions to be altered.

See also

\Drupal\Core\Annotation\Mail

\Drupal\Core\Mail\MailManager

Related topics

1 invocation of hook_mail_backend_info_alter()
MailManager::__construct in core/lib/Drupal/Core/Mail/MailManager.php
Constructs the MailManager object.

File

core/core.api.php, line 2122

Code

function hook_mail_backend_info_alter(&$info) {
    unset($info['test_mail_collector']);
}

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