public function SettingsActions::getSettings in Simplifying 8
Get simplifying settings.
File
- src/
Services/ SettingsActions.php, line 35
Class
- SettingsActions
- Class SettingsActions.
Namespace
Drupal\simplifying\ServicesCode
public function getSettings($file) {
static $settings;
if (empty($settings[$file])) {
$settings[$file] = $this->configfactory
->get('simplifying.settings')
->get($file);
if (isset($settings[$file])) {
$settings[$file] = unserialize($settings[$file]);
}
else {
$settings[$file] = $this
->getDefaultsSettings($file);
}
}
return $settings[$file];
}