function ModulesListForm::__construct
Same name in other branches
- 9 core/modules/system/src/Form/ModulesListForm.php \Drupal\system\Form\ModulesListForm::__construct()
- 8.9.x core/modules/system/src/Form/ModulesListForm.php \Drupal\system\Form\ModulesListForm::__construct()
- 10 core/modules/system/src/Form/ModulesListForm.php \Drupal\system\Form\ModulesListForm::__construct()
Constructs a ModulesListForm object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Extension\ModuleInstallerInterface $module_installer: The module installer.
\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $key_value_expirable: The key value expirable factory.
\Drupal\Core\Access\AccessManagerInterface $access_manager: Access manager.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\user\PermissionHandlerInterface $permission_handler: The permission handler.
\Drupal\Core\Extension\ModuleExtensionList $extension_list_module: The module extension list.
File
-
core/
modules/ system/ src/ Form/ ModulesListForm.php, line 125
Class
- ModulesListForm
- Provides module installation interface.
Namespace
Drupal\system\FormCode
public function __construct(ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, KeyValueStoreExpirableInterface $key_value_expirable, AccessManagerInterface $access_manager, AccountInterface $current_user, PermissionHandlerInterface $permission_handler, ModuleExtensionList $extension_list_module) {
$this->moduleExtensionList = $extension_list_module;
$this->moduleHandler = $module_handler;
$this->moduleInstaller = $module_installer;
$this->keyValueExpirable = $key_value_expirable;
$this->accessManager = $access_manager;
$this->currentUser = $current_user;
$this->permissionHandler = $permission_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.