Search for getPath

  1. Search 7.x for getPath
  2. Search 9.5.x for getPath
  3. Search 10.3.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/lib/Drupal/Core/Path/AliasManager.php Given the alias, return the path it represents.
AliasManagerDecorator::getPathByAlias function core/modules/path_alias/tests/modules/path_alias_deprecated_test/src/AliasManagerDecorator.php Given the alias, return the path it represents.
AliasManagerInterface::getPathByAlias function core/lib/Drupal/Core/Path/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.
AliasStorage::getPathAliasEntityStorage function core/lib/Drupal/Core/Path/AliasStorage.php Returns the path alias entity storage handler.
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.
ConfigInstaller::drupalGetPath function core/lib/Drupal/Core/Config/ConfigInstaller.php Wrapper for drupal_get_path().
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.
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.
EasyRdf_ParsedUri::getPath function core/modules/rdf/tests/src/Traits/EasyRdf_ParsedUri.php Returns the path of the URI (e.g. /foo/bar)
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
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]]
LayoutDefinition::getPath function core/lib/Drupal/Core/Layout/LayoutDefinition.php Gets the base path for this layout definition.
LibraryDiscoveryParser::drupalGetPath function core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php Wraps drupal_get_path().
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
NewAliasManager::getPathByAlias function core/modules/path_alias/tests/modules/path_alias_deprecated_test/src/NewAliasManager.php Given the alias, return the path it represents.
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.
Registry::getPath function core/lib/Drupal/Core/Theme/Registry.php Wraps drupal_get_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.
TestLibraryDiscoveryParser::drupalGetPath function core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php Wraps drupal_get_path().
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.