You are here

public function ModulesWeight::__construct in Modules weight 8.2

Same name and namespace in other branches
  1. 8 src/ModulesWeight.php \Drupal\modules_weight\ModulesWeight::__construct()

Constructs a new ModulesWeight object.

Parameters

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

Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list.

File

src/ModulesWeight.php, line 37

Class

ModulesWeight
Class Modules Weight.

Namespace

Drupal\modules_weight

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleExtensionList $module_extension_list) {
  $this->configFactory = $config_factory;
  $this->moduleExtensionList = $module_extension_list;
}