You are here

public function SubgroupFormStep2::form in Subgroup (Graph) 1.0.x

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/SubgroupFormStep2.php, line 20

Class

SubgroupFormStep2
Provides a form creating a subgroup.

Namespace

Drupal\ggroup\Form

Code

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