Updated: Comment #0
Problem/Motivation
Noticed while reviewing #2006606: Views rendering ignores entity language, eg: Identical nodes rendered in views when nodes have translations, looking at query().
In core/modules/views/lib/Drupal/views/Plugin/views/row/RowPluginBase.php
missing doc blocks for query() and defineOptions()
Proposed resolution
Add missing docs.
See https://drupal.org/node/1354
Remaining tasks
Should we fix other docs that are not standard like one line summaries, and listing @params? (forms)?
User interface changes
None.
API changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | RowPluginBase_docblock-2160797-4.patch | 949 bytes | tim bozeman |
| #2 | RowPluginBase_docblock-2160797-2.patch | 971 bytes | tim bozeman |
Comments
Comment #1
tim bozeman commented:D
Comment #2
tim bozeman commentedI looked at some other doc blocks for definedOptions() and most of them had
{@inheritdoc}so I added that and* Add this relationship to the query.for query().Comment #3
dawehnerThis comment seems to be c&p
Comment #4
tim bozeman commentedWe checked the pluginBase class and both defineOptions() and query() have the same params and returns so this patch sets the docblock to
@inheritdoc.Comment #6
tim bozeman commentedThe test failed on Drupal\user\Tests\UserCreateFailMailTest->testUserAdd() on line 35 of UserCreateFailMailTest.php. I suspect it's a random fail.
Comment #7
tim bozeman commented4: RowPluginBase_docblock-2160797-4.patch queued for re-testing.
Comment #8
dawehnerThank you.
Comment #9
jhodgdonThanks all! Committed to 8.x.