function ConfigSingleExportForm::updateConfigurationType

Handles switching the configuration type selector.

File

core/modules/config/src/Form/ConfigSingleExportForm.php, line 137

Class

ConfigSingleExportForm
Provides a form for exporting a single configuration file.

Namespace

Drupal\config\Form

Code

public function updateConfigurationType($form, FormStateInterface $form_state) {
  $form['config_name']['#options'] = $this->findConfiguration($form_state->getValue('config_type'));
  $form['export']['#value'] = NULL;
  return $form;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.