public function Tasks::name in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::name()
- 10 core/tests/fixtures/database_drivers/custom/fake/Install/Tasks.php \Drupal\Driver\Database\fake\Install\Tasks::name()
- 10 core/tests/fixtures/database_drivers/core/corefake/Install/Tasks.php \Drupal\Core\Database\Driver\corefake\Install\Tasks::name()
- 10 core/modules/sqlite/src/Driver/Database/sqlite/Install/Tasks.php \Drupal\sqlite\Driver\Database\sqlite\Install\Tasks::name()
- 10 core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php \Drupal\pgsql\Driver\Database\pgsql\Install\Tasks::name()
- 10 core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php \Drupal\mysql\Driver\Database\mysql\Install\Tasks::name()
- 10 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefake/Install/Tasks.php \Drupal\corefake\Driver\Database\corefake\Install\Tasks::name()
- 10 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Install/Tasks.php \Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses\Install\Tasks::name()
- 10 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Install/Tasks.php \Drupal\driver_test\Driver\Database\DrivertestMysql\Install\Tasks::name()
- 10 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Install/Tasks.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Install\Tasks::name()
- 10 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Install/Tasks.php \Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion\Install\Tasks::name()
Returns the human-readable name of the driver.
Return value
string The human-readable name of the driver.
Overrides Tasks::name
2 methods override Tasks::name()
- Tasks::name in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysql/ Install/ Tasks.php - Returns the human-readable name of the driver.
- Tasks::name in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysqlDeprecatedVersion/ Install/ Tasks.php - Returns the human-readable name of the driver.
File
- core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Install/ Tasks.php, line 62
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 $e) {
return $this
->t('MySQL, MariaDB, Percona Server, or equivalent');
}
}