public function PhpStorageInterface::save in Service Container 7
Same name and namespace in other branches
- 7.2 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 lib/
Drupal/ Component/ PhpStorage/ FileReadOnlyStorage.php - Saves PHP code to storage.
- FileStorage::save in lib/
Drupal/ Component/ PhpStorage/ FileStorage.php - Saves PHP code to storage.
File
- lib/
Drupal/ Component/ PhpStorage/ PhpStorageInterface.php, line 57 - Contains \Drupal\Component\PhpStorage\PhpStorageInterface.
Class
- PhpStorageInterface
- Stores and loads PHP code.
Namespace
Drupal\Component\PhpStorageCode
public function save($name, $code);