You are here

public function GeysirModalParagraphForm::form in Geysir 8

Gets the actual form array to be built.

Overrides GeysirParagraphForm::form

See also

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

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

File

src/Form/GeysirModalParagraphForm.php, line 21

Class

GeysirModalParagraphForm
Functionality to edit a paragraph through a modal.

Namespace

Drupal\geysir\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);

  // We don't need this title on the Modal because we stay on the same page
  // using a Modal, thus we don't loose context.
  unset($form['#title']);
  return $form;
}