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