function DatabaseDriver::getNamespace

Same name in other branches
  1. 10 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
DatabaseDriver::load in core/lib/Drupal/Core/Extension/DatabaseDriver.php

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.