public function PhpStorageInterface::save in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php \Drupal\Component\PhpStorage\PhpStorageInterface::save()
Saves PHP code to storage.
Parameters
string $name: The virtual file name. Can be a relative path.
string $code: The PHP code to be saved.
Return value
bool TRUE if the save succeeded, FALSE if it failed.
2 methods override PhpStorageInterface::save()
- FileReadOnlyStorage::save in core/
lib/ Drupal/ Component/ PhpStorage/ FileReadOnlyStorage.php - Saves PHP code to storage.
- FileStorage::save in core/
lib/ Drupal/ Component/ PhpStorage/ FileStorage.php - Saves PHP code to storage.
File
- core/
lib/ Drupal/ Component/ PhpStorage/ PhpStorageInterface.php, line 52
Class
- PhpStorageInterface
- Stores and loads PHP code.
Namespace
Drupal\Component\PhpStorageCode
public function save($name, $code);