You are here

public function FileReadOnlyStorage::exists in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php \Drupal\Component\PhpStorage\FileReadOnlyStorage::exists()
  2. 9 core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php \Drupal\Component\PhpStorage\FileReadOnlyStorage::exists()

File

core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php, line 34

Class

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

Namespace

Drupal\Component\PhpStorage

Code

public function exists($name) {
  return file_exists($this
    ->getFullPath($name));
}