API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21DrupalKer...
- \Drupal\Core\DrupalKernelInterface::getSitePath()
- \Drupal\Core\DrupalKernelInterface::setSitePath()
- \Drupal\Core\DrupalKernelInterface::findSitePath
- \Drupal\Core\DrupalKernel::$sitePath
These should all document that the site path is a path relative to the app root.
E.g., this will typically be ''sites/default'.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | interdiff_7-8.txt | 441 bytes | pooja saraah |
| #8 | 3209468-8.patch | 1.49 KB | pooja saraah |
| #7 | docs-site-path-3209468-7.patch | 1.49 KB | joaopauloc.dev |
| #7 | docs-site-path-3209468-7.patch | 1.49 KB | joaopauloc.dev |
Issue fork drupal-3209468
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joachim commentedAlthough, KernelTestBase::bootKernel() calls $kernel->setSitePath with a value like 'vfs://root/sites/simpletest/87157814' and presumably that is NOT in the app root.
Comment #7
joaopauloc.dev commentedDocumentation updated.
DrupalKernelInterface::getSitePath
DrupalKernelInterface::setSitePath
and
DrupalKernel property $sitePath
Comment #8
pooja saraah commentedFixed Custom Commands on #7
Attached interdiff patch.
Comment #9
joaopauloc.dev commentedComment #10
smustgrave commentedThe changes appear to make sense. Only phrase I'm not sure we can use is
Almost every time this value will be sites/default.WIll see what the committers say but not sure we can assume that (even if it's true)
Comment #11
joachim commentedI think the test could do to be tweaked for grammar and readability. I'll have a go later.
Also there's a function first line that should be 'Gets' not 'Get'.
Comment #13
joaopauloc.dev commentedComment #14
smustgrave commented@joachim unless there was more you wanted to add think this is good.
Comment #21
catchLooks good to me.
Change drupal to Drupal on commit (actually a follow-up commit...).
By default, Drupal uses sites/default is a lot of defaults, but don't see a way around that really.