You are here

public function FileStorage::getFullPath in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::getFullPath()
  2. 10 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::getFullPath()

Gets the full file path.

Parameters

string $name: The virtual file name. Can be a relative path.

Return value

string|false The full file path for the provided name. Return FALSE if the implementation needs to prevent access to the file.

Overrides PhpStorageInterface::getFullPath

4 calls to FileStorage::getFullPath()
FileStorage::delete in core/lib/Drupal/Component/PhpStorage/FileStorage.php
Deletes PHP code from storage.
FileStorage::exists in core/lib/Drupal/Component/PhpStorage/FileStorage.php
Checks whether the PHP code exists in storage.
FileStorage::load in core/lib/Drupal/Component/PhpStorage/FileStorage.php
Loads PHP code from storage.
FileStorage::save in core/lib/Drupal/Component/PhpStorage/FileStorage.php
Saves PHP code to storage.
1 method overrides FileStorage::getFullPath()
MTimeProtectedFastFileStorage::getFullPath in core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php
Gets the full path where the file is or should be stored.

File

core/lib/Drupal/Component/PhpStorage/FileStorage.php, line 165

Class

FileStorage
Stores the code as regular PHP files.

Namespace

Drupal\Component\PhpStorage

Code

public function getFullPath($name) {
  return $this->directory . '/' . $name;
}