You are here

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()
ThemeSwitcherRule::getVisibilityConditions in src/Entity/ThemeSwitcherRule.php

File

src/Entity/ThemeSwitcherRule.php, line 172

Class

ThemeSwitcherRule
Defines the Theme Switcher Rule entity.

Namespace

Drupal\theme_switcher\Entity

Code

protected function conditionPluginManager() {
  if (!isset($this->conditionPluginManager)) {
    $this->conditionPluginManager = \Drupal::service('plugin.manager.condition');
  }
  return $this->conditionPluginManager;
}