You are here

public function RoleNegotiator::__construct in Role Based Theme Switcher 8

Same name and namespace in other branches
  1. 9.1.x src/Theme/RoleNegotiator.php \Drupal\role_based_theme_switcher\Theme\RoleNegotiator::__construct()

File

src/Theme/RoleNegotiator.php, line 47

Class

RoleNegotiator
Sets the active theme on admin pages.

Namespace

Drupal\role_based_theme_switcher\Theme

Code

public function __construct(ConfigFactoryInterface $config_factory, AdminContext $adminRoute, RouteMatchInterface $routeMatch, AccountProxy $account) {
  $this->configFactory = $config_factory;
  $this->adminRoute = $adminRoute;
  $this->routeMatch = $routeMatch;
  $this->account = $account;
}