You are here

protected function ThemeKeyNegotiator::getThemeKeyEngine in ThemeKey 8

Gets the ThemeKey Engine service.

Return value

\Drupal\themekey\EngineInterface The string translation service.

File

src/Theme/ThemeKeyNegotiator.php, line 28

Class

ThemeKeyNegotiator

Namespace

Drupal\themekey\Theme

Code

protected function getThemeKeyEngine() {
  if (!$this->themeKeyEngine) {
    $this->themeKeyEngine = \Drupal::service('themekey.engine');
  }
  return $this->themeKeyEngine;
}