public function Theme::getProviders in Express 8
Retrieves all CDN providers.
Return value
\Drupal\bootstrap\Plugin\Provider\ProviderInterface[] All provider instances.
File
- themes/
contrib/ bootstrap/ src/ Theme.php, line 495 - Contains \Drupal\bootstrap.
Class
- Theme
- Defines a theme object.
Namespace
Drupal\bootstrapCode
public function getProviders() {
$providers = [];
// Only continue if the theme is Bootstrap based.
if ($this
->isBootstrap()) {
$provider_manager = new ProviderManager($this);
foreach (array_keys($provider_manager
->getDefinitions()) as $provider) {
if ($provider === 'none') {
continue;
}
$providers[$provider] = $provider_manager
->createInstance($provider, [
'theme' => $this,
]);
}
}
return $providers;
}