Search for path

  1. Search 7.x for path
  2. Search 9.5.x for path
  3. Search 8.9.x for path
  4. Search 10.3.x for path
  5. Other projects
Title Object type File name Summary
Extension::getExtensionPathname function core/lib/Drupal/Core/Extension/Extension.php Returns the relative path of the main extension file, if any.
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.
ExtensionDiscovery::$sitePath property core/lib/Drupal/Core/Extension/ExtensionDiscovery.php The site path.
ExtensionList::$addedPathNames property core/lib/Drupal/Core/Extension/ExtensionList.php A list of extension folder names directly added in code (not discovered).
ExtensionList::$pathNames property core/lib/Drupal/Core/Extension/ExtensionList.php A list of extension folder names keyed by extension name.
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.
ExtensionList::recalculatePathNames function core/lib/Drupal/Core/Extension/ExtensionList.php Generates a sorted list of .info.yml file locations for all extensions.
ExtensionList::setPathname function core/lib/Drupal/Core/Extension/ExtensionList.php Sets the pathname for an extension.
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
ExtensionListTest::testSetPathname function core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @covers ::setPathname
@covers ::getPathname
ExtensionListTestTrait::getModulePath function core/tests/Drupal/Tests/ExtensionListTestTrait.php Gets the path for the specified module.
ExtensionListTestTrait::getThemePath function core/tests/Drupal/Tests/ExtensionListTestTrait.php Gets the path for the specified theme.
ExtensionListTrait::$staticAddedPathNames property core/lib/Drupal/Core/Installer/ExtensionListTrait.php Static version of the added file names during the installer.
ExtensionListTrait::getPathname function core/lib/Drupal/Core/Installer/ExtensionListTrait.php
ExtensionListTrait::setPathname function core/lib/Drupal/Core/Installer/ExtensionListTrait.php
ExtensionPathResolver class core/lib/Drupal/Core/Extension/ExtensionPathResolver.php Factory for getting extension lists by type.
ExtensionPathResolver.php file core/lib/Drupal/Core/Extension/ExtensionPathResolver.php
ExtensionPathResolver::$extensionLists property core/lib/Drupal/Core/Extension/ExtensionPathResolver.php A associative array of ExtensionList objects keyed by type.
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.
ExtensionPathResolver::__construct function core/lib/Drupal/Core/Extension/ExtensionPathResolver.php ExtensionPathResolver constructor.
ExtensionPathResolverTest class core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php Tests that extension path resolver works correctly.
ExtensionPathResolverTest.php file core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php
ExtensionPathResolverTest::testExtensionPathResolving function core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php @covers ::getPathname
ExtensionPathResolverTest::testExtensionPathResolvingPath function core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php @covers ::getPath
ExtensionPathResolverTest::testExtensionPathResolvingWithNonExistingModule function core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php @covers ::getPathname
ExtensionPathResolverTest::testExtensionPathResolvingWithNonExistingProfile function core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php @covers ::getPathname
ExtensionPathResolverTest::testExtensionPathResolvingWithNonExistingTheme function core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php @covers ::getPathname
ExtensionPathResolverTest::testExtensionPathResolvingWithNonExistingThemeEngine function core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php @covers ::getPathname
ExtensionPathResolverTest::testUnknownExtension function core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php Tests the getPath() method with an unknown extension.
FieldPluginBaseTest::$pathProcessor property core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php The mocked path processor.
FieldPluginBaseTest::$pathValidator property core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php The mocked path validator.
FieldPluginBaseTest::providerTestRenderAsExternalLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Data provider for ::testRenderAsExternalLinkWithPathAndTokens().
FieldPluginBaseTest::providerTestRenderAsLinkWithPathAndOptions function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Data provider for ::testRenderAsLinkWithPathAndOptions().
FieldPluginBaseTest::providerTestRenderAsLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Data provider for ::testRenderAsLinkWithPathAndTokens().
FieldPluginBaseTest::providerTestRenderTrimmedWithMoreLinkAndPath function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Data provider for ::testRenderTrimmedWithMoreLinkAndPath().
FieldPluginBaseTest::testRenderAsExternalLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithoutPath function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests rendering as a link without a path.
FieldPluginBaseTest::testRenderAsLinkWithPathAndOptions function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests rendering of a link with a path and options.
FieldPluginBaseTest::testRenderTrimmedWithMoreLinkAndPath function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests rendering with a more link.
FieldResolver::constructInternalPath function core/modules/jsonapi/src/Context/FieldResolver.php Expands the internal path with the "entity" keyword.
FieldResolver::getPathPartPropertyName function core/modules/jsonapi/src/Context/FieldResolver.php Gets the property name from an entity typed or untyped path part.
FieldResolver::resolveInternalEntityQueryPath function core/modules/jsonapi/src/Context/FieldResolver.php Resolves external field expressions into entity query compatible paths.

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