Active
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Views integration
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 May 2012 at 19:29 UTC
Updated:
27 May 2012 at 17:19 UTC
Now that you can't do a drupal_set_title() in Views, it would be nice to use the label or label_callback of an entity for rendering the argument title via the title_query method or title method.
Benefit:
Tradeoff:
Yay or nay?
Comments
Comment #1
fagoSounds good. Why does it have a performance impatct? I'd assume the entity is already loaded and getting the label should be cheap?
Comment #2
mradcliffeI was just looking at how views_handler_argument_node_nid handles things. It actually does an extra database query on the node table.
Yeah, if we can access the entity in the view object, then it should be cheap.