function TemporaryStream::getDirectoryPath

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/StreamWrapper/TemporaryStream.php \Drupal\Core\StreamWrapper\TemporaryStream::getDirectoryPath()
  2. 10 core/lib/Drupal/Core/StreamWrapper/TemporaryStream.php \Drupal\Core\StreamWrapper\TemporaryStream::getDirectoryPath()
  3. 11.x core/lib/Drupal/Core/StreamWrapper/TemporaryStream.php \Drupal\Core\StreamWrapper\TemporaryStream::getDirectoryPath()

Overrides LocalStream::getDirectoryPath

File

core/lib/Drupal/Core/StreamWrapper/TemporaryStream.php, line 39

Class

TemporaryStream
Defines a Drupal temporary (temporary://) stream wrapper class.

Namespace

Drupal\Core\StreamWrapper

Code

public function getDirectoryPath() {
    return \Drupal::service('file_system')->getTempDirectory();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.