1 user.entity.inc public User::uri()

Implements EntityInterface::uri().

Overrides EntityInterface::uri

File

core/modules/user/user.entity.inc, line 162
Entity classes and controllers for User module.

Class

User
Defines the user entity class.

Code

public function uri() {
  // Anonymous users do not have a URI.
  $uri = FALSE;
  if ($this->uid) {
    $uri = array(
      'path' => 'user/' . $this->uid,
      'options' => array(),
    );
  }
  return $uri;
}