function FileStorage::load
Same name in other branches
- 9 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::load()
- 10 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::load()
- 11.x core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::load()
Overrides PhpStorageInterface::load
1 method overrides FileStorage::load()
- MTimeProtectedFileStorage::load in core/
lib/ Drupal/ Component/ PhpStorage/ MTimeProtectedFileStorage.php - Loads PHP code from storage.
File
-
core/
lib/ Drupal/ Component/ PhpStorage/ FileStorage.php, line 42
Class
- FileStorage
- Stores the code as regular PHP files.
Namespace
Drupal\Component\PhpStorageCode
public function load($name) {
// The FALSE returned on failure is enough for the caller to handle this,
// we do not want a warning too.
return @(include_once $this->getFullPath($name)) !== FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.