You are here

public function Connection::version in Drupal 10

Same name in this branch
  1. 10 core/modules/mysql/src/Driver/Database/mysql/Connection.php \Drupal\mysql\Driver\Database\mysql\Connection::version()
  2. 10 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Connection.php \Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion\Connection::version()
1 method overrides Connection::version()
Connection::version in core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Connection.php

File

core/modules/mysql/src/Driver/Database/mysql/Connection.php, line 232

Class

Connection
MySQL implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\mysql\Driver\Database\mysql

Code

public function version() {
  if ($this
    ->isMariaDb()) {
    return $this
      ->getMariaDbVersionMatch();
  }
  return $this
    ->getServerVersion();
}