You are here

public function TestLibraryFilesStream::getDirectoryPath in Libraries API 8.3

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

tests/src/Kernel/ExternalLibrary/TestLibraryFilesStream.php, line 75

Class

TestLibraryFilesStream
Provides a stream wrapper for accessing test library files.

Namespace

Drupal\Tests\libraries\Kernel\ExternalLibrary

Code

public function getDirectoryPath() {
  $module_path = $this->moduleHandler
    ->getModule('libraries')
    ->getPath();
  return $module_path . '/tests/' . $this->directory;
}