Search for getPath

  1. Search 7.x for getPath
  2. Search 8.9.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/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.
BuilderInterface::getPath function composer/Generator/BuilderInterface.php Return the path to where the metapackage should be written.
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.
Config::getPathsForPackage function composer/Plugin/VendorHardening/Config.php Get a list of paths to remove for the given package.
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
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.
DrupalCoreRecommendedBuilder::getPath function composer/Generator/Builder/DrupalCoreRecommendedBuilder.php Return the path to where the metapackage should be written.
DrupalDevDependenciesBuilder::getPath function composer/Generator/Builder/DrupalDevDependenciesBuilder.php Return the path to where the metapackage should be written.
DrupalPinnedDevDependenciesBuilder::getPath function composer/Generator/Builder/DrupalPinnedDevDependenciesBuilder.php Return the path to where the metapackage should be written.
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
ExtensionListTest::testGetPathname function core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @covers ::getPathname
ExtensionListTest::testGetPathnames function core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @covers ::getPathnames
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.
FieldResolver::getPathPartPropertyName function core/modules/jsonapi/src/Context/FieldResolver.php Gets the property name from an entity typed or untyped path part.
FormUploadedFile::getPathname function core/modules/file/src/Upload/FormUploadedFile.php Gets the path to the file.
GetFilenameTest::testDrupalGetPath function core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php Tests drupal_get_path() deprecation.
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
LayoutBuilderOptInTest::getPathForFieldBlock function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderOptInTest.php Returns the path to update a field block in the UI.
LayoutDefinition::getPath function core/lib/Drupal/Core/Layout/LayoutDefinition.php Gets the base path for this layout definition.
LegacyScriptsTest::getPathReposForType function core/tests/Drupal/BuildTests/Composer/LegacyScriptsTest.php Get Composer items that we want to be path repos, from within a directory.
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
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().
ResourceType::getPath function core/modules/jsonapi/src/ResourceType/ResourceType.php Get the resource path.
RouteCompiler::getPathWithoutDefaults function core/lib/Drupal/Core/Routing/RouteCompiler.php Returns the path of the route, without placeholders with a default value.

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