protected function PersonalInformationFormTrait::getConfig in EU Cookie Compliance (GDPR Compliance) 8
Same name and namespace in other branches
- 2.0.x src/PersonalInformationFormTrait.php \Drupal\eu_cookie_compliance\PersonalInformationFormTrait::getConfig()
Get a config with a given name.
Parameters
string $config_name: Name of the config to get.
Return value
\Drupal\Core\Config\ImmutableConfig Config object.
File
- src/
PersonalInformationFormTrait.php, line 114
Class
- PersonalInformationFormTrait
- Trait that implements PersonalInformationFormInterface.
Namespace
Drupal\eu_cookie_complianceCode
protected function getConfig($config_name) {
return $this->configFactory ? $this->configFactory
->get($config_name) : \Drupal::config($config_name);
}