public function ActionsForm::refreshCacheValidateForm in S3 File System 8.3
Same name and namespace in other branches
- 4.0.x src/Form/ActionsForm.php \Drupal\s3fs\Form\ActionsForm::refreshCacheValidateForm()
Refreshes in form validation.
Parameters
array $form: Array that contains the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
Form/ ActionsForm.php, line 226
Class
- ActionsForm
- Defines an actions form.
Namespace
Drupal\s3fs\FormCode
public function refreshCacheValidateForm(array &$form, FormStateInterface $form_state) {
$this
->validateConfigValidateForm($form, $form_state);
$config = \Drupal::config('s3fs.settings')
->get();
// Use this values for submit step.
$form_state
->set('s3fs', [
'config' => $config,
]);
}