function DatabaseDriverList::getPath
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Extension/DatabaseDriverList.php \Drupal\Core\Extension\DatabaseDriverList::getPath()
Gets the path to an extension of a specific type (module, theme, etc.).
The path is the directory in which the .info file is located. This name is coming from \SplFileInfo.
Parameters
string $extension_name: The machine name of the extension for which the path is requested.
Return value
string The Drupal-root-relative path to the specified extension.
Overrides ExtensionList::getPath
File
-
core/
lib/ Drupal/ Core/ Extension/ DatabaseDriverList.php, line 235
Class
- DatabaseDriverList
- Provides a list of available database drivers.
Namespace
Drupal\Core\ExtensionCode
public function getPath($extension_name) {
throw new \LogicException(__METHOD__ . '() is not implemented');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.