You are here

protected function ImportTrainingForm::prepareTemporary in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Form/ImportTrainingForm.php \Drupal\opigno_module\Form\ImportTrainingForm::prepareTemporary()

Prepare temporary folder.

1 call to ImportTrainingForm::prepareTemporary()
ImportTrainingForm::submitForm in src/Form/ImportTrainingForm.php
Form submission handler.

File

src/Form/ImportTrainingForm.php, line 387

Class

ImportTrainingForm
Import Course form.

Namespace

Drupal\opigno_module\Form

Code

protected function prepareTemporary() {

  // Prepare folder.
  $this->fileSystem
    ->deleteRecursive($this->tmp);
  $this->fileSystem
    ->prepareDirectory($this->tmp, FileSystemInterface::MODIFY_PERMISSIONS | FileSystemInterface::CREATE_DIRECTORY);
}