You are here

function content_lock_timeout_uninstall in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 modules/content_lock_timeout/content_lock_timeout.install \content_lock_timeout_uninstall()
  2. 6.2 modules/content_lock_timeout/content_lock_timeout.install \content_lock_timeout_uninstall()
  3. 7.3 modules/content_lock_timeout/content_lock_timeout.install \content_lock_timeout_uninstall()
  4. 7 modules/content_lock_timeout/content_lock_timeout.install \content_lock_timeout_uninstall()
  5. 7.2 modules/content_lock_timeout/content_lock_timeout.install \content_lock_timeout_uninstall()

Implements hook_uninstall().

File

modules/content_lock_timeout/content_lock_timeout.install, line 11
Remove config on uninstall.

Code

function content_lock_timeout_uninstall() {
  \Drupal::service('config.factory')
    ->getEditable('content_lock_timeout.settings')
    ->delete();
}