You are here

public function AltTempStream::getDirectoryPath in Alternative Stream Wrappers 8

Gets the path that the wrapper is responsible for.

@todo Review this method name in D8 per https://www.drupal.org/node/701358.

Return value

string String specifying the path.

Overrides LocalStream::getDirectoryPath

File

src/StreamWrapper/AltTempStream.php, line 40

Class

AltTempStream
Defines an alternative Drupal temporary (alttemporary://) stream wrapper class.

Namespace

Drupal\alt_stream_wrappers\StreamWrapper

Code

public function getDirectoryPath() {
  $temporary_directory = \Drupal::config('alt_stream_wrappers.settings')
    ->get('path.temporary');
  if (empty($temporary_directory)) {
    $temporary_directory = file_directory_temp();
  }
  return $temporary_directory;
}