You are here

function DummyStreamWrapper::getDirectoryPath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

@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/DummyStreamWrapper.php, line 33
Contains \Drupal\file_test\StreamWrapper\DummyStreamWrapper.

Class

DummyStreamWrapper
Helper class for testing the stream wrapper registry.

Namespace

Drupal\file_test\StreamWrapper

Code

function getDirectoryPath() {
  return \Drupal::service('site.path') . '/files';
}