Skip to content
Snippets Groups Projects
Commit a92e4992 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #3044734: Remove unused variable in FillPdfFormDeleteForm

parent 70b7f6ac
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@
namespace Drupal\fillpdf\Form;
use Drupal\Core\Form\FormStateInterface;
use Drupal\file\Entity\File;
/**
* Provides a deletion confirmation form for a FillPdfForm.
......@@ -38,9 +37,6 @@ class FillPdfFormDeleteForm extends FillPdfFormConfirmFormBase {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$fillpdf_form = $this->getEntity();
/** @var \Drupal\file\FileInterface $file */
$file = File::load($fillpdf_form->get('file')->first()->target_id);
$fillpdf_form->delete();
$this->messenger()->addStatus($this->t('FillPDF form deleted.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment