// fastCGI which executes ::destruct() after the Module uninstallation page
// was sent already.
\Drupal::
service('router.builder'
)->
rebuild();
// Let other modules react.
$this->moduleHandler->
invokeAll('modules_uninstalled',
[$module_list,
$sync_status]);
// Flush all persistent caches.
// Any cache entry might implicitly depend on the uninstalled modules,
// so clear all of them explicitly.
$this->moduleHandler->
invokeAll('cache_flush'
);
foreach (Cache::
getBins() as $cache_backend) { $cache_backend->
deleteAll();
} return TRUE;
} /**
* Helper method for removing all cache bins registered by a given module.
*
* @param string $module
* The name of the module for which to remove all registered cache bins.
*/