function FileStorage::load

Same name in other branches
  1. 9 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::load()
  2. 8.9.x core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::load()
  3. 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\PhpStorage

Code

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.