You are here

public function ConfigHelper::deleteAll in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::deleteAll()
  2. 8.2 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::deleteAll()
  3. 8.3 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::deleteAll()
  4. 8.4 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::deleteAll()

Overrides Drupal\Core\Config\FileStorage::deleteAll().

Throws

\Drupal\Core\Config\StorageException

Overrides InstallStorage::deleteAll

File

src/ConfigHelper.php, line 142

Class

ConfigHelper
A facade to assist with manipulating default config.

Namespace

Drupal\lightning_core

Code

public function deleteAll($prefix = '') {
  foreach ($this
    ->listAll($prefix) as $id) {
    $this
      ->delete($id);
  }
}