public function RoleAssignUninstallValidator::isCli in RoleAssign 8
Indicates whether this is a CLI request.
Return value
bool TRUE for a cli request, or FALSE.
1 call to RoleAssignUninstallValidator::isCli()
- RoleAssignUninstallValidator::validate in src/
RoleAssignUninstallValidator.php - Determines the reasons a module can not be uninstalled.
File
- src/
RoleAssignUninstallValidator.php, line 49
Class
- RoleAssignUninstallValidator
- Prevents uninstallation of roleassign module by restricted users.
Namespace
Drupal\roleassignCode
public function isCli() {
return PHP_SAPI === 'cli';
}