public function SecurityReviewController::untrustedRoles in Acquia Connector 8.2
Same name and namespace in other branches
- 8 src/Controller/SecurityReviewController.php \Drupal\acquia_connector\Controller\SecurityReviewController::untrustedRoles()
- 3.x src/Controller/SecurityReviewController.php \Drupal\acquia_connector\Controller\SecurityReviewController::untrustedRoles()
Helper function for user-defined or default untrusted Drupal roles.
Return value
array An associative array with the role id as the key and the role name as value.
3 calls to SecurityReviewController::untrustedRoles()
- SecurityReviewController::checkAdminPermissions in src/
Controller/ SecurityReviewController.php - Look for admin permissions granted to untrusted roles.
- SecurityReviewController::checkInputFormats in src/
Controller/ SecurityReviewController.php - Check input formats of unsafe tags.
- SecurityReviewController::checkPhpFilter in src/
Controller/ SecurityReviewController.php - Check if untrusted users can use PHP Filter format.
File
- src/
Controller/ SecurityReviewController.php, line 600
Class
- SecurityReviewController
- Acquia Security Review page.
Namespace
Drupal\acquia_connector\ControllerCode
public function untrustedRoles() {
$defaults = $this
->defaultUntrustedRoles();
$roles = $defaults;
return array_filter($roles);
}