function config_uninstall_default_config

Uninstalls the default configuration of a given extension.

Parameters

string $type: The extension type; e.g., 'module' or 'theme'.

string $name: The name of the module or theme to install default configuration for.

1 call to config_uninstall_default_config()
ModuleHandler::uninstall in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Uninstalls a given list of disabled modules.

File

drupal/core/includes/config.inc, line 51
This is the API for configuration storage.

Code

function config_uninstall_default_config($type, $name) {
  $storage = drupal_container()
    ->get('config.storage');
  $config_names = $storage
    ->listAll($name . '.');
  foreach ($config_names as $config_name) {
    config($config_name)
      ->delete();
  }
}