public function FileManagementDeleteFileConfirmForm::buildForm in File Management 8
Parameters
\Drupal\file\FileInterface $file: (optional) The file to be deleted.
Overrides ConfirmFormBase::buildForm
File
- src/
Form/ FileManagementDeleteFileConfirmForm.php, line 84
Class
- FileManagementDeleteFileConfirmForm
- Defines a confirmation form for deleting mymodule data.
Namespace
Drupal\file_management\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $file = NULL) {
$this->file = $file;
$this->id = $file
->id();
return parent::buildForm($form, $form_state);
}