You are here

function pwa_uninstall in Progressive Web App 8

Same name and namespace in other branches
  1. 7.2 pwa.install \pwa_uninstall()
  2. 7 pwa.install \pwa_uninstall()
  3. 2.x pwa.install \pwa_uninstall()

Implements hook_uninstall().

File

./pwa.install, line 71
PWA install hooks.

Code

function pwa_uninstall() {

  // Remove the pwa images.
  \Drupal::service('pwa.manifest')
    ->deleteImage();

  // Remove the pwa configuration.
  \Drupal::configFactory()
    ->getEditable('pwa.config')
    ->delete();
}