function DatabaseDriver::getPath

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

Overrides Extension::getPath

2 calls to DatabaseDriver::getPath()
DatabaseDriver::getAutoloadInfo in core/lib/Drupal/Core/Extension/DatabaseDriver.php
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 85

Class

DatabaseDriver
Defines a database driver extension object.

Namespace

Drupal\Core\Extension

Code

public function getPath() {
    return $this->getModule()
        ->getPath() . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Driver' . DIRECTORY_SEPARATOR . 'Database' . DIRECTORY_SEPARATOR . $this->getDriverName();
}

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