You are here

protected function ThemeStream::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/ThemeStream.php, line 32

Class

ThemeStream
Defines the read-only theme:// stream wrapper for theme files.

Namespace

Drupal\system_stream_wrapper\StreamWrapper

Code

protected function getDirectoryPath() {
  return $this
    ->getThemeHandler()
    ->getTheme($this
    ->getOwnerName())
    ->getPath();
}