You are here

function select_registration_roles_uninstall in Select registration roles 8

Same name and namespace in other branches
  1. 7 select_registration_roles.install \select_registration_roles_uninstall()

Implements hook_uninstall().

File

./select_registration_roles.install, line 16
The installation instructions for Select Registration Roles.

Code

function select_registration_roles_uninstall() {
  $config = \Drupal::configFactory();
  $select_registration_roles_config = $config
    ->getEditable('select_registration_roles.settings');

  // Cleaning garbage.
  $select_registration_roles_config
    ->delete()
    ->save();
}