function MTimeProtectedFileStorage::exists

Same name in other branches
  1. 9 core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php \Drupal\Component\PhpStorage\MTimeProtectedFileStorage::exists()
  2. 8.9.x core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php \Drupal\Component\PhpStorage\MTimeProtectedFileStorage::exists()
  3. 11.x core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php \Drupal\Component\PhpStorage\MTimeProtectedFileStorage::exists()

Overrides FileStorage::exists

File

core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php, line 48

Class

MTimeProtectedFileStorage
Stores PHP code in files with securely hashed names.

Namespace

Drupal\Component\PhpStorage

Code

public function exists($name) {
    return $this->checkFile($name) !== FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.