app.root

Same name and namespace in other branches
  1. 8.9.x core/core.services.yml \app.root

Class

\SplString

Tags

  • parameter_service
22 string references to app.root
AppRootFactory::get in core/lib/Drupal/Core/AppRootFactory.php
Gets the app root.
BatchController::create in core/modules/system/src/Controller/BatchController.php
Instantiates a new instance of this class.
BlockLocalTasksTest::setUp in core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php
DbUpdateController::create in core/modules/system/src/Controller/DbUpdateController.php
Instantiates a new instance of this class.
Drupal::root in core/lib/Drupal.php
Gets the app root.

... See full list

File

core/core.services.yml

View source
  1. class: \SplString
  2. factory:
  3. - '@app.root.factory'
  4. - get
  5. deprecated: 'The "%service_id%" service is deprecated in drupal:9.0.0 and is removed from drupal:10.0.0. Use the app.root parameter instead. See https://www.drupal.org/node/3080612'
  6. tags:
  7. - { name: parameter_service }

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