Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2012 at 11:56 UTC
Updated:
29 Jul 2014 at 20:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerThe question is: do you want to have a single uri callback for multiple entity types?
Comment #2
jcisio commentedI'm not sure I get it. Currently Entity::uri returns an array that contain $entity, so it does not needs to return $entity->entityType because it is redundant.
Comment #3
swentel commentedIt is kind of redundant indeed.
Comment #4
dawehnerYeah if you really want you can always get the entity type from the entity itself.
Additional this feature was never considered to be important given that there is no test coverage for that in core.
Comment #5
jcisio commentedExactly!
Comment #6
alexpottCommitted ad0a71a and pushed to 8.x. Thanks!