public function CrmCoreAdminNegotiator::determineActiveTheme in CRM Core 8.3
Determine the active theme for the request.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object.
Return value
string|null The name of the theme, or NULL if other negotiators, like the configured default one, should be used instead.
Overrides AdminNegotiator::determineActiveTheme
File
- src/
Theme/ CrmCoreAdminNegotiator.php, line 16
Class
- CrmCoreAdminNegotiator
- Provides the theme negotiator to use the admin theme on crm-core pages.
Namespace
Drupal\crm_core\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this->configFactory
->get('crm_core.settings')
->get('custom_theme');
}