public function ThemeSwitchNegotiator::__construct in Domain Theme Switch 8
Constructs a new EntityConverter.
Parameters
\Drupal\Core\Routing\AdminContext $admin_context: The route admin context service.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\domain\DomainNegotiatorInterface $negotiator: The domain negotiator.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
- src/
Theme/ ThemeSwitchNegotiator.php, line 74
Class
- ThemeSwitchNegotiator
- Implements ThemeNegotiatorInterface.
Namespace
Drupal\domain_theme_switch\ThemeCode
public function __construct(AdminContext $admin_context, AccountInterface $current_user, DomainNegotiatorInterface $negotiator, ConfigFactoryInterface $config_factory) {
$this->adminContext = $admin_context;
$this->currentUser = $current_user;
$this->negotiator = $negotiator;
$this->configFactory = $config_factory;
}