function RevisionDeleteForm::save

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php \Drupal\Core\Entity\Form\RevisionDeleteForm::save()

The save() method is not used in RevisionDeleteForm. This overrides the default implementation that saves the entity.

Confirmation forms should override submitForm() instead for their logic.

Overrides EntityFormInterface::save

File

core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php, line 257

Class

RevisionDeleteForm
Provides a form for deleting an entity revision.

Namespace

Drupal\Core\Entity\Form

Code

public function save(array $form, FormStateInterface $form_state) {
    throw new \LogicException('The save() method is not used in RevisionDeleteForm');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.