function ImageTestDummyStreamWrapper::getDirectoryPath

Same name and namespace in other branches
  1. 11.x core/modules/image/tests/modules/image_module_test/src/StreamWrapper/ImageTestDummyStreamWrapper.php \Drupal\image_module_test\StreamWrapper\ImageTestDummyStreamWrapper::getDirectoryPath()

Gets the path that the wrapper is responsible for.

Return value

string String specifying the path.

Overrides LocalStream::getDirectoryPath

File

core/modules/image/tests/modules/image_module_test/src/StreamWrapper/ImageTestDummyStreamWrapper.php, line 35

Class

ImageTestDummyStreamWrapper
A non-public, non-private local stream wrapper for image style access tests.

Namespace

Drupal\image_module_test\StreamWrapper

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.