You are here

public function Tasks::minimumVersion in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::minimumVersion()
  2. 10 core/modules/sqlite/src/Driver/Database/sqlite/Install/Tasks.php \Drupal\sqlite\Driver\Database\sqlite\Install\Tasks::minimumVersion()
  3. 10 core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php \Drupal\pgsql\Driver\Database\pgsql\Install\Tasks::minimumVersion()
  4. 10 core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php \Drupal\mysql\Driver\Database\mysql\Install\Tasks::minimumVersion()

Returns the minimum required version of the engine.

Return value

string|null A version string. If not NULL, it will be checked against the version reported by the Database engine using version_compare().

Overrides Tasks::minimumVersion

File

core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php, line 80

Class

Tasks
Specifies installation tasks for MySQL and equivalent databases.

Namespace

Drupal\mysql\Driver\Database\mysql\Install

Code

public function minimumVersion() {
  if ($this
    ->getConnection()
    ->isMariaDb()) {
    return static::MARIADB_MINIMUM_VERSION;
  }
  return static::MYSQL_MINIMUM_VERSION;
}