function public static function CdnProvider::submitForm

8.x-3.x CdnProvider.php public static CdnProvider::submitForm(array &$form, FormStateInterface $form_state)

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

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

Overrides SettingBase::submitForm

Class

CdnProvider
The "cdn_provider" theme setting.

Namespace

Drupal\bootstrap\Plugin\Setting\Advanced\Cdn

Source src/Plugin/Setting/Advanced/Cdn/CdnProvider.php (line 139)

public static function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $theme = SystemThemeSettings::getTheme(Element::create($form), $form_state);
  $provider = ProviderManager::load($theme, $form_state->getValue('cdn_provider'));
  if ($provider instanceof FormInterface) {
    $provider->submitForm($form, $form_state);
  }
}