You are here

public function Connection::isMariaDb 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::isMariaDb()
  2. 10 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Connection.php \Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion\Connection::isMariaDb()
Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Connection.php \Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion\Connection::isMariaDb()

Determines whether the MySQL distribution is MariaDB or not.

Return value

bool Returns TRUE if the distribution is MariaDB, or FALSE if not.

Overrides Connection::isMariaDb

File

core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Connection.php, line 33

Class

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

Namespace

Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion

Code

public function isMariaDb() : bool {
  return TRUE;
}