You are here

public function ActionsForm::refreshCacheValidateForm in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 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\Form

Code

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,
  ]);
}