function ProtectedDirectory::getPath

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::getPath()
  2. 8.9.x core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::getPath()
  3. 10 core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::getPath()

Gets the directory path.

Return value

string The directory path.

File

core/lib/Drupal/Core/File/ProtectedDirectory.php, line 63

Class

ProtectedDirectory
A value object representing a protected directory.

Namespace

Drupal\Core\File

Code

public function getPath() {
    return $this->path;
}

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