public function SyncConfigureForm::submitForm in Configuration installer 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ SyncConfigureForm.php, line 212
Class
- SyncConfigureForm
- Installation step to configure sync directory or upload a tarball.
Namespace
Drupal\config_installer\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
global $install_state;
// Change the langcode to the site default langcode provided by the
// configuration.
$config_storage = new FileStorage(config_get_config_directory(CONFIG_SYNC_DIRECTORY));
$install_state['parameters']['langcode'] = $config_storage
->read('system.site')['langcode'];
}