You are here

public function DbUpdateNegotiator::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Theme/DbUpdateNegotiator.php \Drupal\system\Theme\DbUpdateNegotiator::__construct()
  2. 9 core/modules/system/src/Theme/DbUpdateNegotiator.php \Drupal\system\Theme\DbUpdateNegotiator::__construct()

Constructs a DbUpdateNegotiator.

Parameters

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

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

File

core/modules/system/src/Theme/DbUpdateNegotiator.php, line 38

Class

DbUpdateNegotiator
Sets the active theme for the database update pages.

Namespace

Drupal\system\Theme

Code

public function __construct(ConfigFactoryInterface $config_factory, ThemeHandlerInterface $theme_handler) {
  $this->configFactory = $config_factory;
  $this->themeHandler = $theme_handler;
}