You are here

protected function ConfigDeleteForm::deleteConfig in Config Delete 8

Deletes the configuration object.

Parameters

string $name: The configuration name.

1 call to ConfigDeleteForm::deleteConfig()
ConfigDeleteForm::submitForm in src/Form/ConfigDeleteForm.php
Form submission handler.

File

src/Form/ConfigDeleteForm.php, line 72

Class

ConfigDeleteForm
Provides a form for deleting a single configuration file.

Namespace

Drupal\config_delete\Form

Code

protected function deleteConfig($name) {
  \Drupal::configFactory()
    ->getEditable($name)
    ->delete();
}