public function RoleAssignUninstallValidator::__construct in RoleAssign 8
Same name in this branch
- 8 src/RoleAssignUninstallValidator.php \Drupal\roleassign\RoleAssignUninstallValidator::__construct()
- 8 src/ProxyClass/RoleAssignUninstallValidator.php \Drupal\roleassign\ProxyClass\RoleAssignUninstallValidator::__construct()
Constructs a new RoleAssignUninstallValidator.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- src/
RoleAssignUninstallValidator.php, line 22
Class
- RoleAssignUninstallValidator
- Prevents uninstallation of roleassign module by restricted users.
Namespace
Drupal\roleassignCode
public function __construct(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
}