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