function StorageInterface::deleteAll
Same name in other branches
- 9 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::deleteAll()
- 8.9.x core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::deleteAll()
- 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.
12 methods override StorageInterface::deleteAll()
- CachedStorage::deleteAll in core/
lib/ Drupal/ Core/ Config/ CachedStorage.php - Deletes configuration objects whose names start with a given prefix.
- CheckpointStorage::deleteAll in core/
lib/ Drupal/ Core/ Config/ Checkpoint/ CheckpointStorage.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.
File
-
core/
lib/ Drupal/ Core/ Config/ StorageInterface.php, line 162
Class
- StorageInterface
- Defines an interface for configuration storage.
Namespace
Drupal\Core\ConfigCode
public function deleteAll($prefix = '');
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.