public function ConfigSyncImportForm::updateModeChange in Configuration Synchronizer 8.2
Form submission callback for changing the update mode.
Parameters
array $form: The form render array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Return value
array The form render array.
File
- src/
Form/ ConfigSyncImportForm.php, line 151
Class
Namespace
Drupal\config_sync\FormCode
public function updateModeChange(array &$form, FormStateInterface $form_state) {
// Save the selected update_mode.
$this->state
->set('config_sync.update_mode', (int) $form_state
->getValue('update_mode'));
}