You are here

protected function OperatorManagerTrait::getOperatorManager in ThemeKey 8

Gets the ThemeKey Operator manager.

Return value

\Drupal\Component\Plugin\PluginManagerInterface The ThemeKey Operator manager.

File

src/OperatorManagerTrait.php, line 20

Class

OperatorManagerTrait

Namespace

Drupal\themekey

Code

protected function getOperatorManager() {
  if (!$this->operatorManager) {
    $this->operatorManager = \Drupal::service('plugin.manager.themekey.operator');
  }
  return $this->operatorManager;
}