API page: https://api.drupal.org/api/drupal/core%21modules%21system%21core.api.php...
Enter a descriptive title (above) relating to Entity API, then describe the problem you have found:
This page has a formatting problem -- it looks like there is a missing @endcode after a code block where it says:
$query = $query_service->getAggregate('your_entity_type');
Also, you should use dependency injection to get this object if...
So we just need a quick patch to add a line saying
@endcode
after the code block ends.
This page is generated from file core/modules/system/core.api.php where it says:
@defgroup entity_api
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal8-missing-endcode-2301837-1.patch | 559 bytes | er.pushpinderrana |
Comments
Comment #1
er.pushpinderrana CreditAttribution: er.pushpinderrana commentedFixed formatting issue, added @endcode after the block code ends. Please review attached patch.
Not sure about this.
Comment #2
Elijah LynnI reviewed the patch and it looks like it should work but I don't know how to actually test that the parser will work correctly. Plus I wasn't sure if there should be a blank line after @endcode but based on the docs here https://www.drupal.org/coding-standards/docs#code there shouldn't be a blank line after @endcode, which is what you did and is good!
Comment #3
alexpottCommitted 821da69 and pushed to 8.x. Thanks!
Comment #5
jhodgdonThanks all!