function DummyStreamWrapper::getDirectoryPath
Same name in other branches
- 9 core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyStreamWrapper::getDirectoryPath()
- 10 core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyStreamWrapper::getDirectoryPath()
- 11.x core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyStreamWrapper::getDirectoryPath()
Overrides LocalStream::getDirectoryPath
File
-
core/
modules/ file/ tests/ file_test/ src/ StreamWrapper/ DummyStreamWrapper.php, line 28
Class
- DummyStreamWrapper
- Helper class for testing the stream wrapper registry.
Namespace
Drupal\file_test\StreamWrapperCode
public function getDirectoryPath() {
return \Drupal::service('site.path') . '/files';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.