You are here

public function ActionsForm::refreshCacheSubmitForm 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::refreshCacheSubmitForm()

Validates in form submission.

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 242

Class

ActionsForm
Defines an actions form.

Namespace

Drupal\s3fs\Form

Code

public function refreshCacheSubmitForm(array &$form, FormStateInterface $form_state) {
  $s3fs_storage = $form_state
    ->get('s3fs');
  $config = $s3fs_storage['config'];
  \Drupal::service('s3fs.refresh_cache_batch')
    ->execute($config);
}