You are here

protected function GroupPermissionsOutsiderForm::getInfo in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Form/GroupPermissionsOutsiderForm.php \Drupal\group\Form\GroupPermissionsOutsiderForm::getInfo()

Gets a few basic instructions to show the user.

Return value

array A render array to display atop the form.

Overrides GroupPermissionsTypeSpecificForm::getInfo

File

src/Form/GroupPermissionsOutsiderForm.php, line 55

Class

GroupPermissionsOutsiderForm
Permission form for the synchronized outsider roles for a group type.

Namespace

Drupal\group\Form

Code

protected function getInfo() {
  $info = [
    'outsider_info' => [
      '#prefix' => '<p>',
      '#suffix' => '</p>',
      '#markup' => $this
        ->t("If one Outside role to represent all Authenticated users does not cut it, this is the form for you.<br />Here you can assign outsider permissions per configured site role.<br />Please note that any permissions set here will become void once the user joins the group."),
    ],
  ] + parent::getInfo();

  // Unset the info about the group role audiences.
  unset($info['role_info']);
  return $info;
}