Recently I encountered a situation with a contributed module which need a bug fix. Fixing that required to identify URI of an entity with entity type given. As we all know, most of the entities will have a 'view' page. For nodes, it will be 'node/<nid>' (where nid is the id of that node). But it will not be of same pattern for other entity types. For example, URIs of Commerce Orders are of the form 'admin/commerce/orders/<order-id>'.
KB Article
- Log in to post comments