You are here

public function PurgeConfigurationsForm::__construct in Easy Install 8.9

Same name and namespace in other branches
  1. 8.10 src/Form/PurgeConfigurationsForm.php \Drupal\easy_install\Form\PurgeConfigurationsForm::__construct()
  2. 8.5 src/Form/PurgeConfigurationsForm.php \Drupal\easy_install\Form\PurgeConfigurationsForm::__construct()
  3. 8.6 src/Form/PurgeConfigurationsForm.php \Drupal\easy_install\Form\PurgeConfigurationsForm::__construct()
  4. 8.7 src/Form/PurgeConfigurationsForm.php \Drupal\easy_install\Form\PurgeConfigurationsForm::__construct()
  5. 8.8 src/Form/PurgeConfigurationsForm.php \Drupal\easy_install\Form\PurgeConfigurationsForm::__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.

File

src/Form/PurgeConfigurationsForm.php, line 94

Class

PurgeConfigurationsForm
Provides module installation interface.

Namespace

Drupal\easy_install\Form

Code

public function __construct(ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, KeyValueStoreExpirableInterface $key_value_expirable, AccessManagerInterface $access_manager, AccountInterface $current_user, PermissionHandlerInterface $permission_handler) {
  $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;
}