public function ConnectionTester::hookRequirements in SMTP Authentication Support 8
Testable implementation of hook_requirements().
File
- src/
ConnectionTester/ ConnectionTester.php, line 148
Class
- ConnectionTester
- Allows testing the SMTP connection.
Namespace
Drupal\smtp\ConnectionTesterCode
public function hookRequirements(string $phase) {
$requirements = [];
if ($phase == 'runtime') {
$requirements['smtp_connection'] = [
'title' => $this
->t('SMTP connection')
->__toString(),
'value' => $this->value
->__toString(),
'severity' => $this->severity,
];
}
return $requirements;
}