function ModuleWeight::__construct

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Extension/ModuleWeight.php \Drupal\Core\Extension\ModuleWeight::__construct()

File

core/lib/Drupal/Core/Extension/ModuleWeight.php, line 12

Class

ModuleWeight
Class that manages weights.

Namespace

Drupal\Core\Extension

Code

public function __construct(protected readonly ModuleHandlerInterface $moduleHandler, protected readonly ConfigFactoryInterface $configFactory) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.