public function ProviderManager::__construct in Express 8
Constructs a new \Drupal\bootstrap\Plugin\ProviderManager object.
Parameters
\Drupal\bootstrap\Theme $theme: The theme to use for discovery.
Overrides PluginManager::__construct
File
- themes/
contrib/ bootstrap/ src/ Plugin/ ProviderManager.php, line 31 - Contains \Drupal\bootstrap\Plugin\ProviderManager.
Class
- ProviderManager
- Manages discovery and instantiation of Bootstrap CDN providers.
Namespace
Drupal\bootstrap\PluginCode
public function __construct(Theme $theme) {
parent::__construct($theme, 'Plugin/Provider', 'Drupal\\bootstrap\\Plugin\\Provider\\ProviderInterface', 'Drupal\\bootstrap\\Annotation\\BootstrapProvider');
$this
->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme
->getName() . ':provider', $this
->getCacheTags());
}