function media_gallery_uninstall in Media Gallery 8
Same name and namespace in other branches
- 7.2 media_gallery.install \media_gallery_uninstall()
- 7 media_gallery.install \media_gallery_uninstall()
Implements hook_uninstall().
File
- ./
media_gallery.install, line 13 - Install, update and uninstall functions for the Media Gallery.
Code
function media_gallery_uninstall() {
\Drupal::configFactory()
->getEditable('image.style.media_gallery_image')
->delete();
\Drupal::configFactory()
->getEditable('core.entity_view_mode.media.media_colorbox')
->delete();
\Drupal::configFactory()
->getEditable('core.entity_view_display.media.image.media_colorbox')
->delete();
\Drupal::configFactory()
->getEditable('views.view.media_galleries')
->delete();
}