Search for getPath

  1. Search 7.x for getPath
  2. Search 9.5.x for getPath
  3. Search 8.9.x for getPath
  4. Search 11.x for getPath
  5. Other projects
Title Object type File name Summary
ActiveTheme::getPath function core/lib/Drupal/Core/Theme/ActiveTheme.php Returns the path to the theme directory.
AliasManager::getPathByAlias function core/modules/path_alias/src/AliasManager.php Given the alias, return the path it represents.
AliasManagerInterface::getPathByAlias function core/modules/path_alias/src/AliasManagerInterface.php Given the alias, return the path it represents.
AliasManagerTest::testGetPathByAliasLangcode function core/modules/path_alias/tests/src/Unit/AliasManagerTest.php Tests the getPathByAlias method when a langcode is passed explicitly.
AliasManagerTest::testGetPathByAliasMatch function core/modules/path_alias/tests/src/Unit/AliasManagerTest.php Tests the getPathByAlias method for an alias that have a matching path.
AliasManagerTest::testGetPathByAliasNoMatch function core/modules/path_alias/tests/src/Unit/AliasManagerTest.php Tests the getPathByAlias method for an alias that have no matching path.
ComposerProjectTemplatesTest::getPathReposForType function core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php Get Composer items that we want to be path repos, from within a directory.
ConfigTest::testGetPathsForPackageMixedCase function core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php @covers ::getPathsForPackage[[api-linebreak]]
CurrentPathStack::getPath function core/lib/Drupal/Core/Path/CurrentPathStack.php Returns the path of the current request.
DatabaseDriver::getPath function core/lib/Drupal/Core/Extension/DatabaseDriver.php Returns the relative path of the extension.
DatabaseDriver::getPathname function core/lib/Drupal/Core/Extension/DatabaseDriver.php Returns the relative path and filename of the extension's info file.
DatabaseDriverList::getPath function core/lib/Drupal/Core/Extension/DatabaseDriverList.php Gets the path to an extension of a specific type (module, theme, etc.).
DatabaseDriverList::getPathname function core/lib/Drupal/Core/Extension/DatabaseDriverList.php Gets the info file path for an extension.
DatabaseDriverList::getPathNames function core/lib/Drupal/Core/Extension/DatabaseDriverList.php Returns a list of extension file paths keyed by machine name.
DisplayPluginBase::getPath function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Returns the base path to use for this display.
DisplayPluginInterface::getPath function core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php Returns the base path to use for this display.
Extension::getPath function core/lib/Drupal/Core/Extension/Extension.php Returns the relative path of the extension.
Extension::getPathname function core/lib/Drupal/Core/Extension/Extension.php Returns the relative path and filename of the extension's info file.
ExtensionList::getPath function core/lib/Drupal/Core/Extension/ExtensionList.php Gets the path to an extension of a specific type (module, theme, etc.).
ExtensionList::getPathname function core/lib/Drupal/Core/Extension/ExtensionList.php Gets the info file path for an extension.
ExtensionList::getPathNames function core/lib/Drupal/Core/Extension/ExtensionList.php Returns a list of extension file paths keyed by machine name.
ExtensionList::getPathNamesCacheId function core/lib/Drupal/Core/Extension/ExtensionList.php Returns the extension filenames cache ID.
ExtensionListTest::testGetPath function core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @covers ::getPath[[api-linebreak]]
ExtensionListTest::testGetPathname function core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @covers ::getPathname[[api-linebreak]]
ExtensionListTest::testGetPathNames function core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @covers ::getPathNames[[api-linebreak]]
ExtensionListTrait::getPathname function core/lib/Drupal/Core/Installer/ExtensionListTrait.php
ExtensionPathResolver::getPath function core/lib/Drupal/Core/Extension/ExtensionPathResolver.php Gets the extension directory path.
ExtensionPathResolver::getPathname function core/lib/Drupal/Core/Extension/ExtensionPathResolver.php Gets the info file path for the extension.
ImageStyle::getPathToken function core/modules/image/src/Entity/ImageStyle.php Generates a token to protect an image style derivative.
ImageStyleInterface::getPathToken function core/modules/image/src/ImageStyleInterface.php Generates a token to protect an image style derivative.
ImageStyleTest::testGetPathToken function core/modules/image/tests/src/Unit/ImageStyleTest.php @covers ::getPathToken[[api-linebreak]]
InputStreamUploadedFile::getPathname function core/modules/file/src/Upload/InputStreamUploadedFile.php Gets the path to the file.
LayoutDefinition::getPath function core/lib/Drupal/Core/Layout/LayoutDefinition.php Gets the base path for this layout definition.
MetadataBubblingUrlGenerator::getPathFromRoute function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php Gets the internal path (system path) for a route.
MockAliasManager::getPathByAlias function core/modules/system/src/Tests/Routing/MockAliasManager.php Given the alias, return the path it represents.
MTimeProtectedFileStorage::getPath function core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php
PathAlias::getPath function core/modules/path_alias/src/Entity/PathAlias.php Gets the source path of the alias.
PathAliasInterface::getPath function core/modules/path_alias/src/PathAliasInterface.php Gets the source path of the alias.
PathPluginBase::getPath function core/modules/views/src/Plugin/views/display/PathPluginBase.php Returns the base path to use for this display.
PathValidator::getPathAttributes function core/lib/Drupal/Core/Path/PathValidator.php Gets the matched attributes for a given path.
ProtectedDirectory::getPath function core/lib/Drupal/Core/File/ProtectedDirectory.php Gets the directory path.
RouteCompiler::getPathWithoutDefaults function core/lib/Drupal/Core/Routing/RouteCompiler.php Returns the path of the route, without placeholders with a default value.
SearchPage::getPath function core/modules/search/src/Entity/SearchPage.php Returns the path for the search.
SearchPageInterface::getPath function core/modules/search/src/SearchPageInterface.php Returns the path for the search.
SessionHttpsTest::getPathFromLocationHeader function core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php Extracts internal path from the location header on the response.
SupernovaGenerator::getPathFromRoute function core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php Gets the internal path (system path) for a route.
TwigExtension::getPath function core/lib/Drupal/Core/Template/TwigExtension.php Generates a URL path given a route name and parameters.
UrlGenerator::getPathFromRoute function core/lib/Drupal/Core/Routing/UrlGenerator.php Gets the internal path (system path) for a route.
UrlGeneratorInterface::getPathFromRoute function core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php Gets the internal path (system path) for a route.
UrlGeneratorTest::testGetPathFromRouteTrailing function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Tests URL generation from route with trailing start and end slashes.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.