protected function ThemeSwitcherRule::conditionPluginManager in Theme Switcher Rules 8
Gets the condition plugin manager.
Return value
\Drupal\Core\Executable\ExecutableManagerInterface The condition plugin manager.
1 call to ThemeSwitcherRule::conditionPluginManager()
File
- src/
Entity/ ThemeSwitcherRule.php, line 172
Class
- ThemeSwitcherRule
- Defines the Theme Switcher Rule entity.
Namespace
Drupal\theme_switcher\EntityCode
protected function conditionPluginManager() {
if (!isset($this->conditionPluginManager)) {
$this->conditionPluginManager = \Drupal::service('plugin.manager.condition');
}
return $this->conditionPluginManager;
}