You are here

protected function ModuleStream::getDirectoryPath in System stream wrapper 8

Gets the path that the wrapper is responsible for.

Return value

string String specifying the path.

Overrides LocalStream::getDirectoryPath

File

src/StreamWrapper/ModuleStream.php, line 32

Class

ModuleStream
Defines the read-only module:// stream wrapper for module files.

Namespace

Drupal\system_stream_wrapper\StreamWrapper

Code

protected function getDirectoryPath() {
  return $this
    ->getModuleHandler()
    ->getModule($this
    ->getOwnerName())
    ->getPath();
}