public function ChecklistapiPermissions::universalPermissions in Checklist API 8
Returns an array of universal permissions.
Return value
array An array of permission details.
1 string reference to 'ChecklistapiPermissions::universalPermissions'
File
- src/
ChecklistapiPermissions.php, line 24
Class
- ChecklistapiPermissions
- Defines a class containing permission callbacks.
Namespace
Drupal\checklistapiCode
public function universalPermissions() {
$perms['view checklistapi checklists report'] = [
'title' => t('View the Checklists report'),
];
$perms['view any checklistapi checklist'] = [
'title' => t('View any checklist'),
'description' => $this->viewPermissionDescription,
];
$perms['edit any checklistapi checklist'] = [
'title' => t('Edit any checklist'),
'description' => $this->editPermissionDescription,
];
return $perms;
}