1.20.x stream_wrappers.inc public BackdropTemporaryStreamWrapper::getDirectoryPath()

Implements abstract public function getDirectoryPath()

Overrides BackdropLocalStreamWrapper::getDirectoryPath

File

includes/stream_wrappers.inc, line 974
Backdrop stream wrapper interface.

Class

BackdropTemporaryStreamWrapper
Backdrop temporary (temporary://) stream wrapper class.

Code

public function getDirectoryPath() {
  $temp = config_get('system.core', 'file_temporary_path');
  if (empty($temp)) {
    $temp = file_directory_temp();
  }
  return $temp;
}