You are here

public function Tasks::installable in MongoDB 8

Check whether Drupal is installable on the database.

Overrides Tasks::installable

File

drivers/lib/Drupal/Driver/Database/mongodb/Install/Tasks.php, line 49

Class

Tasks

Namespace

Drupal\Driver\Database\mongodb\Install

Code

public function installable() {
  return extension_loaded('mongo') && file_exists(DRUPAL_ROOT . '/modules/mongodb/src/MongoCollectionFactory.php');
}