app.root
Same name in other branches
- 8.9.x core/core.services.yml \app.root
Class
\SplStringTags
- 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.
File
-
core/
core.services.yml
View source
- class: \SplString
- factory:
- - '@app.root.factory'
- - get
- 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'
- tags:
- - { name: parameter_service }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.