Problem/Motivation
Renderer::doRender() receives the render context as a required argument, but still retrieves and checks it again.
Background
The same lookup was already removed from the access-denied path in #2511330: Deprecate RendererInterface::render()'s sole $is_root_call parameter.
This is a followup to #2511330: Deprecate RendererInterface::render()'s sole $is_root_call parameter.
Proposed resolution
Remove the remaining redundant lookup and check.
Remaining tasks
Review.
User interface changes
None.
Introduced terminology
None.
API changes
None.
Data model changes
None.
Release notes snippet
n/a
Original report
Followup to #2511330: Deprecate RendererInterface::render()'s sole $is_root_call parameter.
Renderer::doRender() receives the render context as a required argument, but still retrieves and checks it again.
The same lookup was already removed from the access-denied path in #2511330: Deprecate RendererInterface::render()'s sole $is_root_call parameter.
Remove the remaining redundant lookup and check.
Issue fork drupal-3633353
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:
Comments
Comment #3
panchoComment #4
smustgrave commentedThis doesn't contain a proper issue summary.
Comment #5
panchoComment #6
panchoComment #7
smustgrave commentedMuch better! Thank you