You are here

public function OgChangeMultipleRolesFormBase::buildForm in Organic groups 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides FormInterface::buildForm

2 calls to OgChangeMultipleRolesFormBase::buildForm()
OgAddMultipleRolesForm::buildForm in src/Form/OgAddMultipleRolesForm.php
Form constructor.
OgRemoveMultipleRolesForm::buildForm in src/Form/OgRemoveMultipleRolesForm.php
Form constructor.
2 methods override OgChangeMultipleRolesFormBase::buildForm()
OgAddMultipleRolesForm::buildForm in src/Form/OgAddMultipleRolesForm.php
Form constructor.
OgRemoveMultipleRolesForm::buildForm in src/Form/OgRemoveMultipleRolesForm.php
Form constructor.

File

src/Form/OgChangeMultipleRolesFormBase.php, line 90

Class

OgChangeMultipleRolesFormBase
Base class for forms that act on multiple roles.

Namespace

Drupal\og\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['submit'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Submit'),
  ];
  return $form;
}