protected function SamlSpConfig::configRecurse in SAML Service Provider 4.x
Same name and namespace in other branches
- 8.3 src/Form/SamlSpConfig.php \Drupal\saml_sp\Form\SamlSpConfig::configRecurse()
- 8.2 src/Form/SamlSpConfig.php \Drupal\saml_sp\Form\SamlSpConfig::configRecurse()
- 3.x src/Form/SamlSpConfig.php \Drupal\saml_sp\Form\SamlSpConfig::configRecurse()
Recursively go through the set values to set the configuration.
1 call to SamlSpConfig::configRecurse()
- SamlSpConfig::submitForm in src/
Form/ SamlSpConfig.php - Form submission handler.
File
- src/
Form/ SamlSpConfig.php, line 140
Class
- SamlSpConfig
- Provides the configuration form.
Namespace
Drupal\saml_sp\FormCode
protected function configRecurse($config, $values, $base = '') {
foreach ($values as $var => $value) {
if (!empty($base)) {
$v = $base . '.' . $var;
}
else {
$v = $var;
}
if (!is_array($value) && !$this
->isOverridden($v)) {
$config
->set($v, $value);
}
else {
$this
->configRecurse($config, $value, $v);
}
}
}