Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #N
Problem/Motivation
#2076085: Resolve the need for a 'title callback' using the route added the ability to have a title callback on the route.
We need a generic one for $entity->label(), somehow.
Proposed resolution
Provide something generic
Remaining tasks
Write it
User interface changes
N/A
API changes
N/A
Related Issues
Comment | File | Size | Author |
---|---|---|---|
#8 | 2102391-8.patch | 5.33 KB | dawehner |
#1 | title-2102391-1.patch | 6.68 KB | dawehner |
Comments
Comment #1
dawehnerJust throwing out some idea.
Comment #3
larowlan#1: title-2102391-1.patch queued for re-testing.
Comment #5
tim.plunkettDeprioritizing
Comment #6
tim.plunkettBecause of https://drupal.org/node/1906810, I don't see how this is possible. Each entity type just has to write one.
Comment #7
dawehnerI think this is still possible, just get the
$route_match
look up the upcast information and then read it from the proper parameters.Comment #8
dawehnerHere is a quick first try
Comment #10
Crell CreditAttribution: Crell at Palantir.net commentedThis will presumably get resolved by #2350509: Implement auto-route generation for all core entities and convert all of the core entities., no? The auto-routes have title callbacks.
Marking postponed on that, although once that's in this will probably just go straight to fixed.
Comment #11
dawehnerYes, exactly.