function Tasks::name
Returns the human-readable name of the driver.
Return value
string The human-readable name of the driver.
Overrides Tasks::name
1 call to Tasks::name()
- Tasks::name in core/
modules/ mysqli/ src/ Driver/ Database/ mysqli/ Install/ Tasks.php
4 methods override Tasks::name()
- Tasks::name in core/
modules/ system/ tests/ modules/ dummydb/ src/ Driver/ Database/ dummydb/ Install/ Tasks.php - Tasks::name in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DriverTestMysql/ Install/ Tasks.php - Tasks::name in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DriverTestMysqlDeprecatedVersion/ Install/ Tasks.php - Tasks::name in core/
modules/ mysqli/ src/ Driver/ Database/ mysqli/ Install/ Tasks.php
File
-
core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Install/ Tasks.php, line 49
Class
- Tasks
- Specifies installation tasks for MySQL and equivalent databases.
Namespace
Drupal\mysql\Driver\Database\mysql\InstallCode
public function name() {
try {
if (!$this->isConnectionActive() || !$this->getConnection() instanceof Connection) {
throw new ConnectionNotDefinedException('The database connection is not active or not a MySql connection');
}
if ($this->getConnection()
->isMariaDb()) {
return $this->t('MariaDB');
}
return $this->t('MySQL, Percona Server, or equivalent');
} catch (ConnectionNotDefinedException) {
return $this->t('MySQL, MariaDB, Percona Server, or equivalent');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.