Search for root

  1. Search 7.x for root
  2. Search 9.5.x for root
  3. Search 10.3.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.
AjaxRenderer::drupalRenderRoot function core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php Wraps \Drupal\Core\Render\RendererInterface::renderRoot().
AliasWhitelist::loadMenuPathRoots function core/lib/Drupal/Core/Path/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.
app.root service core/core.services.yml SplString
app.root.factory service core/core.services.yml Drupal\Core\AppRootFactory
AppRootFactory class core/lib/Drupal/Core/AppRootFactory.php Gets the app root from the kernel.
AppRootFactory.php file core/lib/Drupal/Core/AppRootFactory.php
AppRootFactory::$drupalKernel property core/lib/Drupal/Core/AppRootFactory.php The Drupal kernel.
AppRootFactory::get function core/lib/Drupal/Core/AppRootFactory.php Gets the app root.
AppRootFactory::__construct function core/lib/Drupal/Core/AppRootFactory.php Constructs an AppRootFactory instance.
BatchController::$root property core/modules/system/src/Controller/BatchController.php The app root.
BrowserTestBase::$root property core/tests/Drupal/Tests/BrowserTestBase.php The app root.
BuildTestBase::$serverDocroot property core/tests/Drupal/BuildTests/Framework/BuildTestBase.php The docroot for the server process.
BuildTestBase::getDrupalRoot function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Get the root path of this Drupal codebase.
CacheTagsChecksumTrait::rootTransactionEndCallback function core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php Callback to be invoked just after a database transaction gets committed.
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.
ConstraintViolationBuilder::$root property core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php The root path.
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.
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_render_root function core/includes/common.inc Renders final HTML given a structured array tree.
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
EnvironmentCleaner::$root property core/lib/Drupal/Core/Test/EnvironmentCleaner.php Path to Drupal root directory.
ExecutionContext::$root property core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php The root value of the validated object graph.
ExecutionContext::getRoot function core/lib/Drupal/Core/TypedData/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.
Filter::$root property core/modules/jsonapi/src/Query/Filter.php The root condition group.
Filter::root function core/modules/jsonapi/src/Query/Filter.php Gets the root condition group.
Filter::ROOT_ID constant core/modules/jsonapi/src/Query/Filter.php The key for the implicit root group.
Fixtures::projectRoot function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php Gets the path to Scaffold component.
FormCache::$root property core/lib/Drupal/Core/Form/FormCache.php The app root.

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