You are here

public function PrerenderManager::__construct in Express 8

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

Parameters

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

Overrides PluginManager::__construct

File

themes/contrib/bootstrap/src/Plugin/PrerenderManager.php, line 25
Contains \Drupal\bootstrap\Plugin\PrerenderManager.

Class

PrerenderManager
Manages discovery and instantiation of Bootstrap pre-render callbacks.

Namespace

Drupal\bootstrap\Plugin

Code

public function __construct(Theme $theme) {
  parent::__construct($theme, 'Plugin/Prerender', 'Drupal\\bootstrap\\Plugin\\Prerender\\PrerenderInterface', 'Drupal\\bootstrap\\Annotation\\BootstrapPrerender');
  $this
    ->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme
    ->getName() . ':prerender', $this
    ->getCacheTags());
}