You are here

protected function SamlSpConfig::isOverridden in SAML Service Provider 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/SamlSpConfig.php \Drupal\saml_sp\Form\SamlSpConfig::isOverridden()
  2. 4.x src/Form/SamlSpConfig.php \Drupal\saml_sp\Form\SamlSpConfig::isOverridden()
  3. 3.x src/Form/SamlSpConfig.php \Drupal\saml_sp\Form\SamlSpConfig::isOverridden()

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

Parameters

string $name: SAML SP settings key.

Return value

bool Boolean.

1 call to SamlSpConfig::isOverridden()
SamlSpConfig::buildForm in src/Form/SamlSpConfig.php
Form constructor.

File

src/Form/SamlSpConfig.php, line 34
Contains \Drupal\saml_sp\Form\SamlSpConfigSPForm.

Class

SamlSpConfig

Namespace

Drupal\saml_sp\Form

Code

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