Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Feb 2014 at 16:25 UTC
Updated:
29 Jul 2014 at 23:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehner.
Comment #2
damiankloip commentedI'm wondering if this should live in the Drupal\Core\Render namespace or something instead?
meh
Comment #3
dawehnerQuite meh.
Good idea!
Also write a basic unit test.
Comment #5
damiankloip commentedI guess that is strictly true, seems weird to have @covers for a non-test method though.
Oh, I am sorry. HA
Comment #6
dawehnerTrue, it is a bit sad as it is the only way to get a 100% test coverage now.
Don't you get this behavior in your storm instance?
Comment #7
ParisLiakos commentedthis is a lie:P
i guess it would be nice to have an interface:)
oh, thats nice trick!
Comment #8
dawehnerSure, here is a patch.
Comment #9
xanoMostly docs fixes, and ElementInfo::buildInfo() is now purer by returning the info rather than setting it itself. Might make it more reusable in the future, and more easily testable.
Comment #10
damiankloip commentedIf we are deprecating it, don't we need an issue (novice) for removing that to reference here?
Full namespace needed.
Nice coverage.
Comment #11
xanoWill do.
Comment #13
xanoI talked to Wim Leers about the idea of renaming this to a generic
renderservice, where we can potentially move code likedrupal_render()andElement::children()as well, because a service with one method is silly and all these things belong to the same render API. What do you think?Comment #14
eric_a commented11: drupal_2207743_11.patch queued for re-testing.
Comment #15
dawehnerIt is clear that will need something like a service for drupal_render at the end, but this should be just be responsible for doing the drupal_render logic. On top of that you have services which gives you the element information. I kinda hate to merge a bunch of connected but orthogonal responsiblities.
Comment #16
xanoDoesn't look like this needs work at all.
Comment #17
dawehnerYeah I also disagree with the testbot.
Comment #19
dawehnerRerolled.
Comment #20
xanoComment #22
xanoRe-roll.
Comment #23
xanoRTBC if tests pass.
Comment #24
alexpott@todo for an issue summary :) therefore needs work
Comment #25
dawehnerUpdated issue summary and a link to the change notice: https://drupal.org/node/2235461
Comment #27
dawehnerReroll
Comment #28
sunAwesome!
Comment #29
dawehner.
Comment #30
xjmThanks for the change record draft!
Comment #31
alexpottCommitted d196e8f and pushed to 8.x. Thanks!