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 11.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.
AliasWhitelist::loadMenuPathRoots function core/modules/path_alias/src/AliasWhitelist.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.
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
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.
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
Connection::$rootTransactionEndCallbacks property core/lib/Drupal/Core/Database/Connection.php Post-root (non-nested) transaction commit callbacks.
Connection::addRootTransactionEndCallback function core/lib/Drupal/Core/Database/Connection.php Adds a root transaction end callback.
ConvertTest::testConvertFileInRoot function core/modules/image/tests/src/Functional/ImageEffect/ConvertTest.php Tests that files stored in the root folder are converted properly.
DatabaseTest::$root property core/tests/Drupal/Tests/Core/Database/DatabaseTest.php Path to DRUPAL_ROOT.
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::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.
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.
ExtensionDiscovery::ORIGIN_ROOT constant core/lib/Drupal/Core/Extension/ExtensionDiscovery.php Origin directory weight: Site-wide directory.
ExtensionList::$root property core/lib/Drupal/Core/Extension/ExtensionList.php The app root.
FileTransfer::findChroot function core/lib/Drupal/Core/FileTransfer/FileTransfer.php Returns the chroot property for this connection.
FileTransfer::setChroot function core/lib/Drupal/Core/FileTransfer/FileTransfer.php Sets the chroot and changes the jail to match the correct path scheme.
FileTransferAuthorizeForm::$root property core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php The app root.

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