public function MTimeProtectedFileStorage::load

Implements Drupal\Component\PhpStorage\PhpStorageInterface::load().

Overrides FileStorage::load

File

drupal/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php, line 41
Definition of Drupal\Component\PhpStorage\MTimeProtectedFileStorage.

Class

MTimeProtectedFileStorage
Stores PHP code in files with securely hashed names.

Namespace

Drupal\Component\PhpStorage

Code

public function load($name) {
  if (($filename = $this
    ->checkFile($name)) !== FALSE) {

    // Inline parent::load() to avoid an expensive getFullPath() call.
    return @(include_once $filename) !== FALSE;
  }
  return FALSE;
}