Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Connection.php

function 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.

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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal