public function FileReadOnlyStorage::load

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

Overrides PhpStorageInterface::load

File

drupal/core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php, line 46
Definition of Drupal\Component\PhpStorage\FileStorage.

Class

FileReadOnlyStorage
Reads code as regular PHP files, but won't write them.

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;
}