function DatabaseDriver::getModule

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Extension/DatabaseDriver.php \Drupal\Core\Extension\DatabaseDriver::getModule()

Returns the Extension object of the module containing the database driver.

Return value

\Drupal\Core\Extension\Extension The Extension object of the module containing the database driver.

File

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

Class

DatabaseDriver
Defines a database driver extension object.

Namespace

Drupal\Core\Extension

Code

public function getModule() : Extension {
    return $this->module;
}

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