function protected function CdnProviderBase::setCdnProvidersAjax

8.x-3.x CdnProviderBase.php protected CdnProviderBase::setCdnProvidersAjax($element)

Sets the ajax property to rebuild the entire CDN Providers container.

Parameters

\Drupal\bootstrap\Utility\Element|array $element: An Element to modify.

Return value

\Drupal\bootstrap\Utility\Element The Element passed.

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 126)

protected function setCdnProvidersAjax($element) {
  return Element::create($element)->setProperty('ajax', [
    'callback' => [get_class($this), 'ajaxCdnProvidersCallback'],
    'wrapper' => 'cdn-providers',
  ]);
}