public function DummyStreamWrapper::getDirectoryPath in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyStreamWrapper::getDirectoryPath()
- 9 core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyStreamWrapper::getDirectoryPath()
Gets the path that the wrapper is responsible for.
Return value
string String specifying the path.
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::getContainer()
->getParameter('site.path') . '/files';
}