protected function SMTPConfigForm::isOverridden in SMTP Authentication Support 8
Check if config variable is overridden by the settings.php.
Parameters
string $name: SMTP settings key.
Return value
bool Boolean.
2 calls to SMTPConfigForm::isOverridden()
- SMTPConfigForm::buildForm in src/
Form/ SMTPConfigForm.php - Form constructor.
- SMTPConfigForm::submitForm in src/
Form/ SMTPConfigForm.php - Form submission handler.
File
- src/
Form/ SMTPConfigForm.php, line 343
Class
- SMTPConfigForm
- Implements the SMTP admin settings form.
Namespace
Drupal\smtp\FormCode
protected function isOverridden($name) {
$original = $this->configFactory
->getEditable('smtp.settings')
->get($name);
$current = $this->configFactory
->get('smtp.settings')
->get($name);
return $original != $current;
}