You are here

private function SiteSettingsLoader::fieldsetKey in Site Settings and Labels 8

Create a lowercase key with no spaces from the fieldset label.

Parameters

string $fieldset: The fieldset key.

Return value

string Updated fieldset key.

2 calls to SiteSettingsLoader::fieldsetKey()
SiteSettingsLoader::buildSettings in src/SiteSettingsLoader.php
Build the settings array.
SiteSettingsLoader::loadByFieldset in src/SiteSettingsLoader.php
Load site settings by fieldset.

File

src/SiteSettingsLoader.php, line 324

Class

SiteSettingsLoader
Class SiteSettingsLoader.

Namespace

Drupal\site_settings

Code

private function fieldsetKey($fieldset) {
  return strtolower(str_replace(' ', '_', $fieldset));
}