function public static function SystemThemeSettings::submitResetHttpRequestCache

8.x-3.x SystemThemeSettings.php public static SystemThemeSettings::submitResetHttpRequestCache(array $form, FormStateInterface $form_state)

Submit callback for resetting the cached HTTP requests.

Parameters

array $form: Nested array of form elements that comprise the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Class

SystemThemeSettings
Implements hook_form_system_theme_settings_alter().

Namespace

Drupal\bootstrap\Plugin\Form

Source src/Plugin/Form/SystemThemeSettings.php (line 130)

public static function submitResetHttpRequestCache(array $form, FormStateInterface $form_state) {
  $form_state->setRebuild();
  $theme = SystemThemeSettings::getTheme(Element::create($form), $form_state);
  $cache = \Drupal::keyValueExpirable('theme:' . $theme->getName() . ':http');
  $cache->deleteAll();
}