Issue #2008616 by lokapujya, herom, kgoel | andypost: Convert user_uri() to $user->uri().
parent
c67946065c
commit
aa5bf1b88e
|
@ -37,7 +37,6 @@ use Drupal\user\UserInterface;
|
|||
* },
|
||||
* admin_permission = "administer user",
|
||||
* base_table = "users",
|
||||
* uri_callback = "user_uri",
|
||||
* label_callback = "user_format_name",
|
||||
* fieldable = TRUE,
|
||||
* translatable = TRUE,
|
||||
|
|
|
@ -140,15 +140,6 @@ function user_js_alter(&$javascript) {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Entity URI callback.
|
||||
*/
|
||||
function user_uri($user) {
|
||||
return new Url('user.view', array(
|
||||
'user' => $user->id(),
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Populates $entity->account for each prepared entity.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue