function public function SettingManager::__construct

8.x-3.x SettingManager.php public SettingManager::__construct(Theme $theme)

Constructs a new \Drupal\bootstrap\Plugin\SettingManager object.

Parameters

\Drupal\bootstrap\Theme $theme: The theme to use for discovery.

Overrides PluginManager::__construct

Class

SettingManager
Manages discovery and instantiation of Bootstrap theme settings.

Namespace

Drupal\bootstrap\Plugin

Source src/Plugin/SettingManager.php (line 34)

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());
}