Stores the code as regular PHP files.
Hierarchy
- class \Drupal\Component\PhpStorage\FileStorage implements PhpStorageInterface
File
- core/lib/Drupal/Component/PhpStorage/FileStorage.php, line 8
Namespace
Drupal\Component\PhpStorage
Members
Name | Modifiers | Type | Description |
---|---|---|---|
FileStorage::$directory | protected | property | The directory where the files should be stored. |
FileStorage::createDirectory | protected | function | Ensures the requested directory exists and has the right permissions. |
FileStorage::delete | public | function | Deletes PHP code from storage. Overrides PhpStorageInterface::delete |
FileStorage::deleteAll | public | function | Removes all files in this bin. Overrides PhpStorageInterface::deleteAll |
FileStorage::ensureDirectory | protected | function | Ensures the directory exists, has the right permissions, and a .htaccess. |
FileStorage::exists | public | function | Checks whether the PHP code exists in storage. Overrides PhpStorageInterface::exists |
FileStorage::garbageCollection | public | function | Performs garbage collection on the storage. Overrides PhpStorageInterface::garbageCollection |
FileStorage::getFullPath | public | function | Gets the full file path. Overrides PhpStorageInterface::getFullPath |
FileStorage::htaccessLines | public static | function | Returns the standard .htaccess lines that Drupal writes to file directories. |
FileStorage::listAll | public | function | Lists all the files in the storage. Overrides PhpStorageInterface::listAll |
FileStorage::load | public | function | Loads PHP code from storage. Overrides PhpStorageInterface::load |
FileStorage::save | public | function | Saves PHP code to storage. Overrides PhpStorageInterface::save |
FileStorage::unlink | protected | function | Deletes files and/or directories in the specified path. |
FileStorage::writeable | public | function | Whether this is a writeable storage. Overrides PhpStorageInterface::writeable |
FileStorage::__construct | public | function | Constructs this FileStorage object. |
Please login to continue.