public function GeysirModalParagraphDeleteForm::form in Geysir 8
Gets the actual form array to be built.
Overrides ContentEntityConfirmFormBase::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- src/
Form/ GeysirModalParagraphDeleteForm.php, line 19
Class
- GeysirModalParagraphDeleteForm
- Functionality to delete a paragraph through a modal.
Namespace
Drupal\geysir\FormCode
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;
}