You are here

public function StorageInterface::deleteAll in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

5 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.
NullStorage::deleteAll in core/lib/Drupal/Core/Config/NullStorage.php
Deletes configuration objects whose names start with a given prefix.
StorageReplaceDataWrapper::deleteAll in core/modules/config/src/StorageReplaceDataWrapper.php
Deletes configuration objects whose names start with a given prefix.

File

core/lib/Drupal/Core/Config/StorageInterface.php, line 162
Contains \Drupal\Core\Config\StorageInterface.

Class

StorageInterface
Defines an interface for configuration storage.

Namespace

Drupal\Core\Config

Code

public function deleteAll($prefix = '');