public function SiteMail::init in Production check & Production monitor 8
Initializes the check plugin.
Overrides ProdCheckBase::init
File
- src/
Plugin/ ProdCheck/ Settings/ SiteMail.php, line 26
Class
- SiteMail
- Site email status check
Namespace
Drupal\prod_check\Plugin\ProdCheck\SettingsCode
public function init() {
$prod_check_sitemail = $this->configFactory
->get('prod_check.settings')
->get('site_email');
$mail = $this->configFactory
->get('system.site')
->get('mail');
if (preg_match('/' . $prod_check_sitemail . '/i', $mail)) {
$this->dangerous_mail = $mail;
}
}