protected function GroupPermissionsTypeSpecificForm::getInfo in Group 2.0.x
Same name and namespace in other branches
- 8 src/Form/GroupPermissionsTypeSpecificForm.php \Drupal\group\Form\GroupPermissionsTypeSpecificForm::getInfo()
Gets a few basic instructions to show the user.
Return value
array A render array to display atop the form.
Overrides GroupPermissionsForm::getInfo
1 call to GroupPermissionsTypeSpecificForm::getInfo()
- GroupPermissionsOutsiderForm::getInfo in src/
Form/ GroupPermissionsOutsiderForm.php - Gets a few basic instructions to show the user.
1 method overrides GroupPermissionsTypeSpecificForm::getInfo()
- GroupPermissionsOutsiderForm::getInfo in src/
Form/ GroupPermissionsOutsiderForm.php - Gets a few basic instructions to show the user.
File
- src/
Form/ GroupPermissionsTypeSpecificForm.php, line 60
Class
- GroupPermissionsTypeSpecificForm
- Provides the user permissions administration form for a specific group type.
Namespace
Drupal\group\FormCode
protected function getInfo() {
$list = [
'role_info' => [
'#prefix' => '<p>' . $this
->t('Group types use three special roles:') . '</p>',
'#theme' => 'item_list',
'#items' => [
[
'#markup' => $this
->t('<strong>Anonymous:</strong> This is the same as the global Anonymous role, meaning the user has no account.'),
],
[
'#markup' => $this
->t('<strong>Outsider:</strong> This means the user has an account on the site, but is not a member of the group.'),
],
[
'#markup' => $this
->t('<strong>Member:</strong> The default role for anyone in the group. Behaves like the "Authenticated user" role does globally.'),
],
],
],
];
return $list + parent::getInfo();
}