You are here

protected function FasttoggleSettingsForm::getEditableConfigNames in Fasttoggle 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/FasttoggleSettingsForm.php \Drupal\fasttoggle\Form\FasttoggleSettingsForm::getEditableConfigNames()

Gets the configuration names that will be editable.

Return value

array An array of configuration object names that are editable if called in conjunction with the trait's config() method.

Overrides ConfigFormBaseTrait::getEditableConfigNames

File

src/Form/FasttoggleSettingsForm.php, line 51
Contains \Drupal\fasttoggle\Form\FasttoggleSettingsForm.

Class

FasttoggleSettingsForm
Configure fasttoggle settings for this site.

Namespace

Drupal\fasttoggle\Form

Code

protected function getEditableConfigNames() {
  static $result = NULL;
  if (is_null($result)) {
    $settings = $this->settingManager
      ->getDefinitions();
    $result = [];
    foreach ($settings as $object_type => $groups) {
      foreach ($groups as $group_name => $settings) {
        $result = array_merge($result, array_keys($settings));
      }
    }
  }
  return $result;
}