function DatabaseDriver::getNamespace

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Extension/DatabaseDriver.php \Drupal\Core\Extension\DatabaseDriver::getNamespace()

Returns the PHP namespace of the database driver.

Return value

string The PHP namespace of the database driver.

4 calls to DatabaseDriver::getNamespace()
DatabaseDriver::getAutoloadInfo in core/lib/Drupal/Core/Extension/DatabaseDriver.php
DatabaseDriver::getInstallTasks in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Returns the install tasks object instance of this database driver.
DatabaseDriver::getName in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Returns the internal name of the extension.
DatabaseDriver::load in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Loads the main extension file, if any.

File

core/lib/Drupal/Core/Extension/DatabaseDriver.php, line 71

Class

DatabaseDriver
Defines a database driver extension object.

Namespace

Drupal\Core\Extension

Code

public function getNamespace() : string {
    return "Drupal\\" . $this->getModule()
        ->getName() . "\\Driver\\Database\\" . $this->getDriverName();
}

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