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
AliasManagerDecorator::getPathByAlias function core/modules/path_alias/tests/modules/path_alias_deprecated_test/src/AliasManagerDecorator.php
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.
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
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
DrupalDevDependenciesBuilder::getPath function composer/Generator/Builder/DrupalDevDependenciesBuilder.php
DrupalPinnedDevDependenciesBuilder::getPath function composer/Generator/Builder/DrupalPinnedDevDependenciesBuilder.php
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
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
FieldResolver::getPathPartPropertyName function core/modules/jsonapi/src/Context/FieldResolver.php Gets the property name from an entity typed or untyped path part.
ImageStyle::getPathToken function core/modules/image/src/Entity/ImageStyle.php
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.
LibraryDiscoveryParser::drupalGetPath function core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php Wraps drupal_get_path().
MetadataBubblingUrlGenerator::getPathFromRoute function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
MockAliasManager::getPathByAlias function core/modules/system/src/Tests/Routing/MockAliasManager.php
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
PathAlias::getPath function core/modules/path_alias/src/Entity/PathAlias.php
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
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.
SearchPage::getPath function core/modules/search/src/Entity/SearchPage.php

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