I made a module, and defined my custom entity there. I set the path for the administrative page using the following array.
'admin ui' => array( 'path' => 'admin/structure/optimizations', )
How can I get the edit path for one instance of my entity, for example admin/structure/optimizations/manage/2?
I don't think its a good idea to hard-code the path as with
'admin/structure/optimizations/manage' . $entity->id.
Is there any function to get the edit path for an entity?