You are here

public function PreprocessManager::__construct in Express 8

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

Parameters

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

Overrides PluginManager::__construct

File

themes/contrib/bootstrap/src/Plugin/PreprocessManager.php, line 24
Contains \Drupal\bootstrap\Plugin\PreprocessManager.

Class

PreprocessManager
Manages discovery and instantiation of Bootstrap preprocess hooks.

Namespace

Drupal\bootstrap\Plugin

Code

public function __construct(Theme $theme) {
  parent::__construct($theme, 'Plugin/Preprocess', 'Drupal\\bootstrap\\Plugin\\Preprocess\\PreprocessInterface', 'Drupal\\bootstrap\\Annotation\\BootstrapPreprocess');
  $this
    ->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme
    ->getName() . ':preprocess', $this
    ->getCacheTags());
}