public static function CdnJsdelivrVersion::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.
Overrides CdnProvider::ajaxCallback
File
- themes/
contrib/ bootstrap/ src/ Plugin/ Setting/ Advanced/ Cdn/ CdnJsdelivrVersion.php, line 67 - Contains \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnJsdelivrVersion.
Class
- CdnJsdelivrVersion
- The "cdn_jsdelivr_version" theme setting.
Namespace
Drupal\bootstrap\Plugin\Setting\Advanced\CdnCode
public static function ajaxCallback(array $form, FormStateInterface $form_state) {
return $form['advanced']['cdn'][$form_state
->getValue('cdn_provider', Bootstrap::getTheme()
->getSetting('cdn_provider'))];
}