Skip to content
Snippets Groups Projects

Closes #3433034

All threads resolved!
Files
2
@@ -3,7 +3,6 @@
namespace Drupal\Core\Extension;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\StringTranslation\TranslationInterface;
@@ -50,12 +49,6 @@ public function __construct(TranslationInterface $string_translation, ModuleExte
public function validate($module) {
$reasons = [];
// This is here to allow InstallerNonDefaultDatabaseDriverTest execute,
// it needs to get a new connection than the one passed in construction.
// @todo Remove the next line of code in
// https://www.drupal.org/project/drupal/issues/3433034.
$this->connection = Database::getConnection();
// When the database driver is provided by a module, then that module
// cannot be uninstalled.
if ($module === $this->connection->getProvider()) {
Loading