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

Breadcrumb

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

function DatabaseDriver::getModuleInfo

Gets the content of the info.yml file of the driver's module, as an array.

The info array is saved in the $info property.

Throws

\Drupal\Core\Extension\InfoParserException Exception thrown if there is a parsing error or the .info.yml file does not contain a required key.

3 calls to DatabaseDriver::getModuleInfo()
DatabaseDriver::getAutoloadInfo in core/lib/Drupal/Core/Extension/DatabaseDriver.php
DatabaseDriver::isExperimental in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Checks if an extension is marked as experimental.
DatabaseDriver::isObsolete in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Checks if an extension is marked as obsolete.

File

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

Class

DatabaseDriver
Defines a database driver extension object.

Namespace

Drupal\Core\Extension

Code

private function getModuleInfo() : void {
    if (!isset($this->info)) {
        $infoParser = new InfoParser($this->root);
        $this->info = $infoParser->parse($this->getModule()
            ->getPathname());
    }
}
RSS feed
Powered by Drupal