function Extension::getExtensionPathname
Same name in this branch
- 11.1.x vendor/mglaman/phpstan-drupal/src/Drupal/Extension.php \mglaman\PHPStanDrupal\Drupal\Extension::getExtensionPathname()
Returns the relative path of the main extension file, if any.
Return value
string|null
1 method overrides Extension::getExtensionPathname()
- DatabaseDriver::getExtensionPathname in core/
lib/ Drupal/ Core/ Extension/ DatabaseDriver.php - Returns the relative path of the main extension file, if any.
File
-
core/
lib/ Drupal/ Core/ Extension/ Extension.php, line 130
Class
- Extension
- Defines an extension (file) object.
Namespace
Drupal\Core\ExtensionCode
public function getExtensionPathname() {
if ($this->filename) {
return $this->getPath() . '/' . $this->filename;
}
}