public function FileStorage::delete

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::delete()
  2. 8.x drupal/core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\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 66
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);
  if (file_exists($path)) {
    return $this
      ->unlink($path);
  }
  return FALSE;
}