Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Found few functions has unnecessary @param tags
- File :
core/modules/block/src/BlockViewBuilder.php
Function :lazyBuilder()
-
File :
core/modules/block/src/Tests/Migrate/d6/MigrateBlockTest.php
Function :assertEntity()
Few function missing variable name for @param tags.
-
File :
core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
Function :
__construct()
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff-2601682-9-11.txt | 1.01 KB | krknth |
#11 | 2601682-8.patch | 4.14 KB | krknth |
#9 | 2601682-7.patch | 4.14 KB | krknth |
#5 | 2601682-5.patch | 3.8 KB | anil280988 |
Comments
Comment #2
krknth CreditAttribution: krknth as a volunteer and at Valuebound commentedAdded patch
Comment #3
krknth CreditAttribution: krknth as a volunteer and at Valuebound commentedAddded new patch that will fix in block_content module too.
Comment #4
jhodgdonThis all looks good, thanks!
One thing though:
If you are going to add a @param tag line, it also needs a documentation line below it.
Comment #5
anil280988 CreditAttribution: anil280988 at Publicis Sapient for Publicis Sapient commentedAdded Documentation line.
Comment #6
rakesh.gectcrComment #7
jhodgdonPatch #5 is correct. Patch #6 isn't -- the parameter is actually a class that generates URLs, not a generated URL and there is no given route anyway.
So, #5 is RTBC. Hiding #6 patch.
Comment #8
alexpottThis class is also missing a protected property for
$this->urlGenerator
- let's add that here.Comment #9
krknth CreditAttribution: krknth as a volunteer and at Valuebound commented@alexpott : Added protected $urlGenerator
Comment #10
jhodgdonAn interdiff would have been nice. ;)
Sorry, didn't notice this either in my previous reviews:
url => URL
url => URL
Comment #11
krknth CreditAttribution: krknth as a volunteer and at Valuebound commented@jhodgdon : sorry for not adding interdiff before
fixed your comment
Comment #12
jhodgdonThanks!
Comment #14
alexpottCommitted 3060a7c and pushed to 8.0.x. Thanks!
Technically this is an API change - but I think it is totally acceptable to protect this. Nothing should be publicly accessing this.