public function SiteSettingsLoader::loadByFieldset in Site Settings and Labels 8
Load site settings by fieldset.
Parameters
string $fieldset: The name of the fieldset.
Return value
array All settings within the given fieldset.
File
- src/
SiteSettingsLoader.php, line 70
Class
- SiteSettingsLoader
- Class SiteSettingsLoader.
Namespace
Drupal\site_settingsCode
public function loadByFieldset($fieldset) {
$this
->loadAll();
$fieldset = $this
->fieldsetKey($fieldset);
return isset($this->settings[$fieldset]) ? $this->settings[$fieldset] : [];
}