protected static function NodeExport::getFileUri in Node export 8
Prepares a URI for the file to be saved.
Parameters
string $format: The format of the file to be saved.
Return value
string A URI for the file to be saved.
1 call to NodeExport::getFileUri()
- NodeExport::export in src/
NodeExport.php - Exports nodes to a specified format to a file/code.
File
- src/
NodeExport.php, line 22
Class
- NodeExport
- Provides a Node Export function.
Namespace
Drupal\node_exportCode
protected static function getFileUri($format) {
return uniqid(\Drupal::config('system.file')
->get('default_scheme') . '://node_export_') . '.' . strtolower($format);
}