function uc_file_qualify_file in Ubercart 8.4
Same name and namespace in other branches
- 6.2 uc_file/uc_file.module \uc_file_qualify_file()
- 7.3 uc_file/uc_file.module \uc_file_qualify_file()
Qualifies a given path with the base Ubercart file download path.
Parameters
$filename: The name of the path to qualify.
Return value
The qualified path.
10 calls to uc_file_qualify_file()
- ActionForm::buildForm in uc_file/
src/ Form/ ActionForm.php - Form constructor.
- DownloadController::download in uc_file/
src/ Controller/ DownloadController.php - Handles file downloading and error states.
- FileController::show in uc_file/
src/ Controller/ FileController.php - Displays list of all files available to attach to products.
- FileDeleteForm::buildForm in uc_file/
src/ Form/ FileDeleteForm.php - Form constructor.
- RenewFile::doExecute in uc_file/
src/ Plugin/ RulesAction/ RenewFile.php - Renews an order's product files.
File
- uc_file/
uc_file.module, line 698 - Allows products to be associated with downloadable files.
Code
function uc_file_qualify_file($filename) {
$file_config = \Drupal::config('uc_file.settings');
return $file_config
->get('base_dir') . '/' . $filename;
}