You are here

public function ThemeNegotiator::__construct in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Theme/ThemeNegotiator.php \Drupal\dashboards\Theme\ThemeNegotiator::__construct()

Service constructor.

Parameters

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

\Drupal\Core\Session\AccountInterface $currentUser: The current user.

File

src/Theme/ThemeNegotiator.php, line 47

Class

ThemeNegotiator
Dashboard theme negotiator.

Namespace

Drupal\dashboards\Theme

Code

public function __construct(ThemeManagerInterface $theme_manager, ConfigFactoryInterface $configFactory, AccountInterface $currentUser) {
  $this->themeManager = $theme_manager;
  $this->config = $configFactory;
  $this->user = $currentUser;
}