You are here

public function StorageInterface::deleteAll in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::deleteAll()
  2. 10 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::deleteAll()

Deletes configuration objects whose names start with a given prefix.

Given the following configuration object names:

  • node.type.article
  • node.type.page

Passing the prefix 'node.type.' will delete the above configuration objects.

Parameters

string $prefix: (optional) The prefix to search for. If omitted, all configuration objects that exist will be deleted.

Return value

bool TRUE on success, FALSE otherwise.

8 methods override StorageInterface::deleteAll()
CachedStorage::deleteAll in core/lib/Drupal/Core/Config/CachedStorage.php
Deletes configuration objects whose names start with a given prefix.
DatabaseStorage::deleteAll in core/lib/Drupal/Core/Config/DatabaseStorage.php
Deletes configuration objects whose names start with a given prefix.
FileStorage::deleteAll in core/lib/Drupal/Core/Config/FileStorage.php
Deletes configuration objects whose names start with a given prefix.
ManagedStorage::deleteAll in core/lib/Drupal/Core/Config/ManagedStorage.php
Deletes configuration objects whose names start with a given prefix.
MemoryStorage::deleteAll in core/lib/Drupal/Core/Config/MemoryStorage.php
Deletes configuration objects whose names start with a given prefix.

... See full list

File

core/lib/Drupal/Core/Config/StorageInterface.php, line 157

Class

StorageInterface
Defines an interface for configuration storage.

Namespace

Drupal\Core\Config

Code

public function deleteAll($prefix = '');