private function ContextManager::getCurrentTheme in Context 8
Same name and namespace in other branches
- 8.4 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 356
Class
- ContextManager
- This is the manager service for the context module and should not be confused with the built in contexts in Drupal.
Namespace
Drupal\contextCode
private function getCurrentTheme() {
return $this->themeManager
->getActiveTheme()
->getName();
}