You are here

public function GroupJoinForm::form in Group 8

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

Gets the actual form array to be built.

Overrides GroupContentForm::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

File

src/Form/GroupJoinForm.php, line 16

Class

GroupJoinForm
Provides a form for joining a group.

Namespace

Drupal\group\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);
  $form['entity_id']['#access'] = FALSE;
  $form['group_roles']['#access'] = FALSE;
  return $form;
}