function ExtensionStreamBase::getDirectoryPath

Gets the path that the wrapper is responsible for.

Return value

string String specifying the path.

Overrides LocalStream::getDirectoryPath

1 call to ExtensionStreamBase::getDirectoryPath()
ExtensionStreamBase::getExternalUrl in core/lib/Drupal/Core/StreamWrapper/ExtensionStreamBase.php
Returns a web accessible URL for the resource.

File

core/lib/Drupal/Core/StreamWrapper/ExtensionStreamBase.php, line 105

Class

ExtensionStreamBase
Defines a base stream wrapper implementation for extension assets.

Namespace

Drupal\Core\StreamWrapper

Code

public function getDirectoryPath() {
  $extension_name = $this->getExtensionName();
  return $this->getExtension($extension_name)
    ->getPath();
}

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