Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2014 at 22:45 UTC
Updated:
23 Oct 2014 at 09:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
estoyausenteComment #2
larowlanComment #3
larowlanTwo of these will fail, can't use static in string callback
Comment #4
tim.plunkettIt's a little shortsighted of #post_render_cache to key by the $callback, since normally we'd use an array for this. Trying concatenating instead.
Comment #7
tim.plunkettAhh, drupal_render_cache_generate_placeholder does not support callables either, only strings.
Comment #8
larowlanLets just move this to the service (CommentPostRenderCache) where we can have real DI an no \Drupal and then it can be swapped/subclassed easily
+1
Comment #9
estoyausenteHi, thanks for the patch correction. It's enough for me now :-)
Comment #10
larowlan8.1 can be followup
Comment #11
larowlan#2350273: Move CommentViewBuilder::renderLinks post_render_cache callback to CommentPostRenderCache
Comment #12
alexpottCommitted bc20bd5 and pushed to 8.0.x. Thanks!
Comment #14
tstoecklerDon't we really want get_called_class() here instead of get_class()?
Comment #15
tim.plunkettUm, yeah we do. Either get_called_class() or get_class($this)
Comment #16
dawehnerYeah, see http://3v4l.org/E6Cjk
Comment #17
larowlan/me didn't even know of that function - thanks
Comment #18
dawehnerCool
Comment #19
larowlantrivial patch of the month?
Comment #20
alexpottCommitted 6d5e445 and pushed to 8.0.x. Thanks!