public function SettingManager::__construct in Express 8
Constructs a new \Drupal\bootstrap\Plugin\SettingManager object.
Parameters
\Drupal\bootstrap\Theme $theme: The theme to use for discovery.
Overrides PluginManager::__construct
File
- themes/
contrib/ bootstrap/ src/ Plugin/ SettingManager.php, line 25 - Contains \Drupal\bootstrap\Plugin\SettingManager.
Class
- SettingManager
- Manages discovery and instantiation of Bootstrap theme settings.
Namespace
Drupal\bootstrap\PluginCode
public function __construct(Theme $theme) {
parent::__construct($theme, 'Plugin/Setting', 'Drupal\\bootstrap\\Plugin\\Setting\\SettingInterface', 'Drupal\\bootstrap\\Annotation\\BootstrapSetting');
$this
->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme
->getName() . ':setting', $this
->getCacheTags());
}