public function FileStorage::delete

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::delete()
  2. 9.x drupal/core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::delete()

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

Overrides PhpStorageInterface::delete

1 method overrides FileStorage::delete()

File

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

Class

FileStorage
Stores the code as regular PHP files.

Namespace

Drupal\Component\PhpStorage

Code

public function delete($name) {
  $path = $this
    ->getFullPath($name);
  return @unlink($path);
}