function hook_mail_backend_info_alter in Drupal 10
Same name and namespace in other branches
- 8 core/core.api.php \hook_mail_backend_info_alter()
- 9 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
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 2127 - Documentation landing page and topics, plus core library hooks.
Code
function hook_mail_backend_info_alter(&$info) {
unset($info['test_mail_collector']);
}