You are here

public function ConfigUpdateController::__construct in Configuration Update Manager 8

Constructs a ConfigUpdateController object.

Parameters

\Drupal\config_update\ConfigDiffInterface $config_diff: The config differ.

\Drupal\config_update\ConfigListByProviderInterface $config_list: The config lister.

\Drupal\config_update\ConfigRevertInterface $config_update: The config reverter.

\Drupal\Core\Diff\DiffFormatter $diff_formatter: The diff formatter to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

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

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

File

config_update_ui/src/Controller/ConfigUpdateController.php, line 89

Class

ConfigUpdateController
Returns responses for Configuration Revert module operations.

Namespace

Drupal\config_update_ui\Controller

Code

public function __construct(ConfigDiffInterface $config_diff, ConfigListByProviderInterface $config_list, ConfigRevertInterface $config_update, DiffFormatter $diff_formatter, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, ConfigFactoryInterface $config_factory) {
  $this->configDiff = $config_diff;
  $this->configList = $config_list;
  $this->configRevert = $config_update;
  $this->diffFormatter = $diff_formatter;
  $this->diffFormatter->show_header = FALSE;
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this->configFactory = $config_factory;
}