public function ConfigSingleExportForm::updateConfigurationType in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config/src/Form/ConfigSingleExportForm.php \Drupal\config\Form\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\FormCode
public function updateConfigurationType($form, FormStateInterface $form_state) {
$form['config_name']['#options'] = $this
->findConfiguration($form_state
->getValue('config_type'));
unset($form['export']['#value']);
return $form;
}