modules/thunder_media/src/EventSubscriber/ConfigEventsSubscriber.php
public function configDelete(ConfigCrudEvent $event) {
    $config = $event->getConfig();
    if ($config->getName() === 'views.view.thunder_media' && ($media_view = View::load('media'))) {
      $media_view->setStatus(TRUE)->save();
    }
  }
public function configDelete(ConfigCrudEvent $event) {
    $config = $event->getConfig();
    if ($config->getName() === 'views.view.thunder_media' && ($media_view = View::load('media'))) {
      $media_view->setStatus(TRUE)->save();
    }
  }
public function configDelete ( ConfigCrudEvent $ event ) { $ config = $ event -> getConfig ( ) ; if ( $ config -> getName ( ) === 'views.view.thunder_media' && ( $ media_view = View :: load ( 'media' ) ) ) { $ media_view -> setStatus ( TRUE ) -> save ( ) ; } }
React to a config object being deleted.

@param \Drupal\Core\Config\ConfigCrudEvent $event
Config crud event.
React to a config object being deleted .