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

Breadcrumb

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

function Extension::getPath

Same name in this branch
  1. 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\Drupal

Code

public function getPath() : string {
    return dirname($this->pathname);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal