You are here

protected function ExportAllForm::deleteFileInfoFromStorage in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_export/src/Form/ExportAllForm.php \Drupal\bibcite_export\Form\ExportAllForm::deleteFileInfoFromStorage()

Delete info about file from temp storage.

Parameters

int $key: Key of the file element.

1 call to ExportAllForm::deleteFileInfoFromStorage()
ExportAllForm::createFilesList in modules/bibcite_export/src/Form/ExportAllForm.php
Create files list based on info from temp storage.

File

modules/bibcite_export/src/Form/ExportAllForm.php, line 151

Class

ExportAllForm
Export all reference data to any available export format.

Namespace

Drupal\bibcite_export\Form

Code

protected function deleteFileInfoFromStorage($key) {
  $files_info = $this->tempStorage
    ->get('export_files');
  unset($files_info[$key]);
  $this->tempStorage
    ->set('export_files', $files_info);
}