You are here

protected function SamlSpDrupalLoginConfig::isOverridden in SAML Service Provider 8.2

Check if config variable is overridden by the settings.php.

Parameters

string $name: SAML SP Drupal Login settings key.

Return value

bool Boolean.

1 call to SamlSpDrupalLoginConfig::isOverridden()
SamlSpDrupalLoginConfig::buildForm in modules/saml_sp_drupal_login/src/Form/SamlSpDrupalLoginConfig.php
Form constructor.

File

modules/saml_sp_drupal_login/src/Form/SamlSpDrupalLoginConfig.php, line 35
Contains \Drupal\saml_sp_drupal_login\Form\SamlSpDrupalLoginConfig.

Class

SamlSpDrupalLoginConfig

Namespace

Drupal\saml_sp_drupal_login\Form

Code

protected function isOverridden($name) {
  $original = $this->configFactory
    ->getEditable('saml_sp_drupal_login.config')
    ->get($name);
  $current = $this->configFactory
    ->get('saml_sp_drupal_login.config')
    ->get($name);
  return $original != $current;
}