function TemporaryStream::getDirectoryPath
Gets the path that the wrapper is responsible for.
Return value
string String specifying the path.
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\StreamWrapperCode
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.