Problem/Motivation
My debugger shows this value for $base:
[
"node_field_data"
"#global"
]
The docs don't say that #global is a magic value.
Steps to reproduce
- Install Drupal core 11.x in an environment with XDebug
- Put a breakpoint in
ViewsDataHelper::fetchFields() - Inspect values passed in the debugger and you should find:
array("node_field_data", "#global")
Proposed resolution
Update documentation of ViewsDataHelper::fetchFields() to describe the #global value.
Remaining tasks
Create merge request.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Issue fork drupal-3349434
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:
- 3349434-docs-for-viewsdatahelperfetchfields
changes, plain diff MR !13073
Comments
Comment #4
peter törnstrand commentedSuggestion:
Comment #5
smustgrave commentedDon't see any MR to review. Also summary appears to be incomplete
Comment #6
peter törnstrand commentedComment #8
peter törnstrand commentedComment #9
joachim commented@smustgrave for documentation-only issues, I think it's fine to ask for review of proposed text in a comment rather than go through the process of making an MR.
> Pass '#global' to
Nitpick, but I think this conveys that '#global' is an alternative to the string or array of tables. Whereas in fact, it's a magic table value -- as seen in the IS, you can mix it with real tables. So something like:
> The special table name '#global' can be used to [etc]
Comment #10
smustgrave commentedok
Comment #11
joachim commentedLooks good. Thanks everyone!
Comment #12
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!