Search for root

  1. Search 7.x for root
  2. Search 9.5.x for root
  3. Search 8.9.x for root
  4. Search 10.3.x for root
  5. Other projects
Title Object type File name Summary
$base_root global core/globals.api.php The root URL of the host, excluding the path.
AliasPrefixList::loadMenuPathRoots function core/modules/path_alias/src/AliasPrefixList.php Loads menu path roots to prepopulate cache.
AnnotatedClassDiscovery::$rootNamespacesIterator property core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php A list of base namespaces with their PSR-4 directories.
AssertPreconditionsTrait::getProjectRoot function core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php Returns the absolute path of the project root.
BrowserTestBase::setUpAppRoot function core/tests/Drupal/Tests/BrowserTestBase.php Sets up the root application path.
BuildTestBase::$serverDocroot property core/tests/Drupal/BuildTests/Framework/BuildTestBase.php The docroot for the server process.
BuildTestBase::getComposerRoot function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Gets the path to the Composer root directory.
BuildTestBase::getDrupalRoot function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Get the root path of this Drupal codebase.
BuildTestBase::getDrupalRootStatic function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Get the root path of this Drupal codebase.
BuildTestBase::getWorkingPathDrupalRoot function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Gets the working path for Drupal core.
BuildTestBase::getWorkspaceDrupalRoot function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Gets the path to Drupal root in the workspace directory.
BuildTestTest::testCopyCodebaseDocRoot function core/tests/Drupal/BuildTests/Framework/Tests/BuildTestTest.php Tests copying codebase when Drupal and Composer roots are different.
CacheTagsChecksumTrait::rootTransactionEndCallback function core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php Callback to be invoked just after a database transaction gets committed.
CastedIntFieldJoinTestBase::$rootUser property core/modules/views/tests/src/Kernel/Plugin/CastedIntFieldJoinTestBase.php
CollectPathsToExcludeEvent::addPathsRelativeToProjectRoot function core/modules/package_manager/src/Event/CollectPathsToExcludeEvent.php Flags paths to be ignored, relative to the project root.
CollectPathsToExcludeEvent::addPathsRelativeToWebRoot function core/modules/package_manager/src/Event/CollectPathsToExcludeEvent.php Flags paths to be ignored, relative to the web root.
ComponentPluginManager::makePathRelativeToLibraryRoot function core/modules/sdc/src/ComponentPluginManager.php Takes a path and makes it relative to the library provider.
ComponentPluginManager::makePathRelativeToLibraryRoot function core/lib/Drupal/Core/Theme/ComponentPluginManager.php Takes a path and makes it relative to the library provider.
ComposerInspector::getRootPackageInfo function core/modules/package_manager/src/ComposerInspector.php Returns the output of `composer show --self` in a directory.
ComposerInspectorTest::testRootPackageInfo function core/modules/package_manager/tests/src/Kernel/ComposerInspectorTest.php @covers ::getRootPackageInfo
ComposerPatchesValidatorTest::REQUIRE_PACKAGE_FROM_ROOT constant core/modules/package_manager/tests/src/Kernel/ComposerPatchesValidatorTest.php
Config::$rootPackage property composer/Plugin/VendorHardening/Config.php The root package.
ConfigTest::testNoRootMergeConfig function core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php @covers ::getAllCleanupPaths
ConfigTest::testRootMergeConfig function core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php @covers ::getAllCleanupPaths
ConvertTest::testConvertFileInRoot function core/modules/image/tests/src/Functional/ImageEffect/ConvertTest.php Tests that files stored in the root folder are converted properly.
DbUpdateController::$root property core/modules/system/src/Controller/DbUpdateController.php The app root.
DriverSpecificTransactionTestBase::createRootTransaction function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Create a root Drupal transaction.
DriverSpecificTransactionTestBase::rootTransactionCallback function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php A post-transaction callback for testing purposes.
DriverSpecificTransactionTestBase::testRollbackRoot function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests root transaction rollback.
DriverSpecificTransactionTestBase::testRollbackRootAfterSavepointRollback function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests root transaction rollback after savepoint rollback.
DriverSpecificTransactionTestBase::testRollbackRootWithActiveSavepoint function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests root transaction rollback failure when savepoint is open.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackAddedWithoutTransaction function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests that adding a post-transaction callback fails with no transaction.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackCalledAfterDdlAndDestruction function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction callback executes after a DDL statement.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackCalledAfterDdlAndRollbackForTransactionalDdlDatabase function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction rollback executes after a DDL statement.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackCalledAfterRollbackAndDestruction function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction callback executes after transaction rollback.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackCalledOnCommit function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction callback executes after transaction commit.
DriverSpecificTransactionTestBase::testRootTransactionEndCallbackFailureUponDdlAndRollbackForNonTransactionalDdlDatabase function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Tests post-transaction rollback failure after a DDL statement.
Drupal::root function core/lib/Drupal.php Gets the app root.
DrupalCoreComposer::rootComposerJson function composer/Generator/Util/DrupalCoreComposer.php Fetch the composer data from the root drupal/drupal project.
DrupalKernel::$root property core/lib/Drupal/Core/DrupalKernel.php The app root.
DrupalKernel::getAppRoot function core/lib/Drupal/Core/DrupalKernel.php Gets the app root.
DrupalKernel::guessApplicationRoot function core/lib/Drupal/Core/DrupalKernel.php Determine the application root directory based on this file's location.
DrupalKernelInterface::getAppRoot function core/lib/Drupal/Core/DrupalKernelInterface.php Gets the app root.
drupal_phpunit_contrib_extension_directory_roots function core/tests/bootstrap.php Returns directories under which contributed extensions may exist.
DRUPAL_ROOT constant core/includes/bootstrap.inc Defines the root directory of the Drupal installation.
EntityAdapterUnitTest::testGetRoot function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::getRoot
EntityReferenceFieldItemNormalizerTrait::normalizeRootReferenceValue function core/modules/serialization/src/Normalizer/EntityReferenceFieldItemNormalizerTrait.php
ExecutionContext::getRoot function core/lib/Drupal/Core/Validation/ExecutionContext.php
Extension::$root property core/lib/Drupal/Core/Extension/Extension.php The app root.
ExtensionDiscovery::$root property core/lib/Drupal/Core/Extension/ExtensionDiscovery.php The app root for the current operation.

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