function public static function CdnProviderBase::ajaxCdnProvidersCallback

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

AJAX callback for reloading CDN Providers.

Parameters

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

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

Return value

array The form element to render.

Class

CdnProviderBase
A base class for CDN Provider settings.

Namespace

Drupal\bootstrap\Plugin\Setting\Advanced\Cdn

Source src/Plugin/Setting/Advanced/Cdn/CdnProviderBase.php (line 93)

public static function ajaxCdnProvidersCallback(array $form, FormStateInterface $form_state) {
  return $form['cdn']['cdn_provider'];
}