Problem/Motivation
The comparison table has "Remove from the list" links built by calling getLink(...)->toString(). This causes the link to be generated and rendered up front. It also makes it hard to alter in hook_entity_comparison_rows_alter. Using toRenderable allows adding classes to the generated link and delays URL generation.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork entity_comparison-3190911
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:
- 3190911-use-torenderable-on
changes, plain diff MR !1
Comments
Comment #3
mglamanWith this MR proposal, I was able to use the alter and add styling like
Comment #4
heddnSeem good enough to me.
Comment #6
lobodakyrylo commentedComment #7
lobodakyrylo commented