function Connection::isMariaDb

Same name in this branch
  1. 11.x core/modules/system/tests/modules/driver_test/src/Driver/Database/DriverTestMysqlDeprecatedVersion/Connection.php \Drupal\driver_test\Driver\Database\DriverTestMysqlDeprecatedVersion\Connection::isMariaDb()
Same name in other branches
  1. 9 core/modules/mysql/src/Driver/Database/mysql/Connection.php \Drupal\mysql\Driver\Database\mysql\Connection::isMariaDb()
  2. 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Connection.php \Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion\Connection::isMariaDb()
  3. 10 core/modules/mysql/src/Driver/Database/mysql/Connection.php \Drupal\mysql\Driver\Database\mysql\Connection::isMariaDb()
  4. 10 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.

1 call to Connection::isMariaDb()
Connection::version in core/modules/mysql/src/Driver/Database/mysql/Connection.php
Returns the version of the database server.
1 method overrides Connection::isMariaDb()
Connection::isMariaDb in core/modules/system/tests/modules/driver_test/src/Driver/Database/DriverTestMysqlDeprecatedVersion/Connection.php
Determines whether the MySQL distribution is MariaDB or not.

File

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

Class

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

Namespace

Drupal\mysql\Driver\Database\mysql

Code

public function isMariaDb() : bool {
    return (bool) $this->getMariaDbVersionMatch();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.