You are here

public function RequiredModuleUninstallValidator::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php \Drupal\Core\Extension\RequiredModuleUninstallValidator::__construct()
  2. 8 core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php \Drupal\Core\ProxyClass\Extension\RequiredModuleUninstallValidator::__construct()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php \Drupal\Core\Extension\RequiredModuleUninstallValidator::__construct()

Constructs a new RequiredModuleUninstallValidator.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php, line 26
Contains \Drupal\Core\Extension\RequiredModuleUninstallValidator.

Class

RequiredModuleUninstallValidator
Ensures that required modules cannot be uninstalled.

Namespace

Drupal\Core\Extension

Code

public function __construct(TranslationInterface $string_translation) {
  $this->stringTranslation = $string_translation;
}