You are here

public static function CdnProvider::ajaxCallback in Express 8

AJAX callback for reloading CDN provider elements.

Parameters

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

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

1 method overrides CdnProvider::ajaxCallback()
CdnJsdelivrVersion::ajaxCallback in themes/contrib/bootstrap/src/Plugin/Setting/Advanced/Cdn/CdnJsdelivrVersion.php
AJAX callback for reloading CDN provider elements.

File

themes/contrib/bootstrap/src/Plugin/Setting/Advanced/Cdn/CdnProvider.php, line 102
Contains \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnProvider.

Class

CdnProvider
The "cdn_provider" theme setting.

Namespace

Drupal\bootstrap\Plugin\Setting\Advanced\Cdn

Code

public static function ajaxCallback(array $form, FormStateInterface $form_state) {
  return $form['advanced']['cdn'][$form_state
    ->getValue('cdn_provider', Bootstrap::getTheme()
    ->getSetting('cdn_provider'))];
}