function public function Theme::getCdnProvider

8.x-3.x Theme.php public Theme::getCdnProvider()

Retrieves the set CDN Provider instance for the theme.

Return value

\Drupal\bootstrap\Plugin\Provider\ProviderInterface A CDN Provider instance.

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Source src/Theme.php (line 422)

public function getCdnProvider() {
  $provider = $this->getSetting('cdn_provider');
  $providers = $this->getCdnProviders();
  return isset($providers[$provider]) ? $providers[$provider] : ProviderManager::broken();
}