Problem/Motivation

A follow up to #2015307: \Drupal\Core\Render\RendererInterface::render() docs do not mention most of the base # attributes, adding default attributes to elements or how rendering works to change the indentation of the docs of \Drupal\Core\Render\RendererInterface::render() to comply with the Drupal API documentation and comment standards. See #34.

I think Making lists in documentation is the relevant section.

Steps to reproduce

Proposed resolution

Fix the indentation.

Remaining tasks

Make a patch
Review
Commit

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

Comments

quietone created an issue. See original summary.

franck_lorancy’s picture

cilefen’s picture

Status: Active » Needs review
libbna’s picture

Status: Needs review » Needs work
StatusFileSize
new47.21 KB

Indentation is good. But when I checked for Drupal coding standards found these three errors.

franck_lorancy’s picture

Thanks Libbna Mathew for your return. I have added missing array type hint.

franck_lorancy’s picture

Status: Needs work » Needs review
libbna’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new37.48 KB

Reviewed #5 patch and found no errors.

star-szr’s picture

Status: Reviewed & tested by the community » Needs work

Thanks for the work here, folks! Those additional changes (type hinting) are out of scope for a documentation ticket.

See: https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett...

libbna’s picture

@Cottser hey, can you explain a little bit what do you mean by "out of scope for a documentation ticket" ? Thanks.

franck_lorancy’s picture

Thank you Cottser for your comment. Is Patch #2 can resolve this issue? Should I open a merge request?

star-szr’s picture

Status: Needs work » Reviewed & tested by the community

@Libbna Mathew - Changing type hints in nearby code is not within the scope of this ticket since this is only meant to update documentation (it's under the 'documentation' component). Please see the link from my previous comment, there is a lot of relevant information on that page about issue scoping.

The patch in #2 looks good! @franck_lorancy there should be no need to open a merge request but feel free to.

libbna’s picture

OK. Thank you for the info. @Cottser.

alexpott’s picture

Version: 10.0.x-dev » 9.3.x-dev
Status: Reviewed & tested by the community » Fixed

Creditting @quietone for creating the issue and @Cottser for issue management.

Committed and pushed e16ec17906 to 10.0.x and 5859d6d5d9 to 9.5.x and 5c791bc22b to 9.4.x and 1d657bd0ce to 9.3.x. Thanks!

Backported to 9.3.x since this documentation.

@Libbna Thank you for looking into this issue.

Posting screenshots of your codebase or command-line interface does not advance the issue, since the automated testing infrastructure tells us whether the change set still applies correctly.

So, I've removed the issue credit for that screenshot. In the future, you can get credit for issues by reading the issue to understand its purpose, and posting your review or testing of that purpose. Thank you!

See the issue credit guidelines for more information.

  • alexpott committed e16ec17 on 10.0.x
    Issue #3270081 by franck_lorancy, quietone, Cottser: Fix indentation in...

  • alexpott committed 5859d6d on 9.5.x
    Issue #3270081 by franck_lorancy, quietone, Cottser: Fix indentation in...

  • alexpott committed 5c791bc on 9.4.x
    Issue #3270081 by franck_lorancy, quietone, Cottser: Fix indentation in...

  • alexpott committed 1d657bd on 9.3.x
    Issue #3270081 by franck_lorancy, quietone, Cottser: Fix indentation in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.