protected function ThemeKeyRuleChainForm::getRuleChainManager in ThemeKey 8
Gets the ThemeKey Rule Chain manager.
Return value
\Drupal\themekey\RuleChainManagerInterface The ThemeKey Rule Chain manager.
Overrides RuleChainManagerTrait::getRuleChainManager
2 calls to ThemeKeyRuleChainForm::getRuleChainManager()
- ThemeKeyRuleChainForm::buildForm in src/
Form/ ThemeKeyRuleChainForm.php - Form constructor.
- ThemeKeyRuleChainForm::submitForm in src/
Form/ ThemeKeyRuleChainForm.php - Form submission handler.
File
- src/
Form/ ThemeKeyRuleChainForm.php, line 23
Class
- ThemeKeyRuleChainForm
- Provides a form for administering the ThemeKey rule chain.
Namespace
Drupal\themekey\FormCode
protected function getRuleChainManager() {
if (!$this->ruleChainManager) {
$this->ruleChainManager = \Drupal::service('themekey.rule_chain_manager');
$this->ruleChainManager
->setRuleChainConfig($this
->config('themekey.rule_chain'));
}
return $this->ruleChainManager;
}