protected function RuleChainManagerTrait::getRuleChainManager in ThemeKey 8
Gets the ThemeKey Rule Chain manager.
Return value
\Drupal\themekey\RuleChainManagerInterface The ThemeKey Rule Chain manager.
2 calls to RuleChainManagerTrait::getRuleChainManager()
- ConfigImportEventSubscriber::onConfigImporterSave in src/
EventSubscriber/ ConfigImportEventSubscriber.php - Engine::determineTheme in src/
Engine/ Engine.php - Determine the active theme for the request.
1 method overrides RuleChainManagerTrait::getRuleChainManager()
- ThemeKeyRuleChainForm::getRuleChainManager in src/
Form/ ThemeKeyRuleChainForm.php - Gets the ThemeKey Rule Chain manager.
File
- src/
RuleChainManagerTrait.php, line 20
Class
Namespace
Drupal\themekeyCode
protected function getRuleChainManager() {
if (!$this->ruleChainManager) {
$this->ruleChainManager = \Drupal::service('themekey.rule_chain_manager');
}
return $this->ruleChainManager;
}