class PreprocessManager

Manages discovery and instantiation of Bootstrap preprocess hooks.

Hierarchy

Expanded class hierarchy of PreprocessManager

Related topics

2 files declare their use of PreprocessManager

Namespace

Drupal\bootstrap\Plugin
Source
class PreprocessManager extends PluginManager {

  /**
   * Constructs a new \Drupal\bootstrap\Plugin\PreprocessManager object.
   *
   * @param \Drupal\bootstrap\Theme $theme
   *   The theme to use for discovery.
   */
  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());
  }

}

Members

Contains filters are case sensitive
Name Modifiers Type Description
PluginManager::$theme protected property The current theme.
PluginManager::$themeHandler protected property The theme handler to check if theme exists.
PluginManager::$themeManager protected property The theme manager to invoke alter hooks.
PluginManager::alterDefinitions protected function
PluginManager::createInstance public function
PluginManager::getCacheTags public function Retrieves the cache tags used to invalidate caches.
PluginManager::getDefinitions public function
PluginManager::getDefinitionsLike public function Retrieves all definitions where the plugin ID matches a certain criteria.
PluginManager::providerExists protected function
PreprocessManager::__construct public function Constructs a new \Drupal\bootstrap\Plugin\PreprocessManager object. Overrides PluginManager::__construct