You are here

private function ContextManager::getCurrentTheme in Context 8.4

Same name and namespace in other branches
  1. 8 src/ContextManager.php \Drupal\context\ContextManager::getCurrentTheme()

Get current active theme.

Return value

string Current active theme name.

1 call to ContextManager::getCurrentTheme()
ContextManager::getActiveReactions in src/ContextManager.php
Get all active reactions or reactions of a certain type.

File

src/ContextManager.php, line 431

Class

ContextManager
This is the manager service for the context module.

Namespace

Drupal\context

Code

private function getCurrentTheme() {
  return $this->themeManager
    ->getActiveTheme()
    ->getName();
}