Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DatabaseDriver.php

function 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;
}
RSS feed
Powered by Drupal