You are here

public function DummyReadOnlyStreamWrapper::getDirectoryPath in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyReadOnlyStreamWrapper::getDirectoryPath()

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

core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php, line 28

Class

DummyReadOnlyStreamWrapper
Helper class for testing the stream wrapper registry.

Namespace

Drupal\file_test\StreamWrapper

Code

public function getDirectoryPath() {
  return \Drupal::getContainer()
    ->getParameter('site.path') . '/files';
}