protected function UserRenderController::getBuildDefaults

Overrides Drupal\Core\Entity\EntityRenderController::getBuildDefaults().

Overrides EntityRenderController::getBuildDefaults

File

drupal/core/modules/user/lib/Drupal/user/UserRenderController.php, line 21
Definition of Drupal\user\UserRenderController.

Class

UserRenderController
Render controller for users.

Namespace

Drupal\user

Code

protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langcode) {
  $return = parent::getBuildDefaults($entity, $view_mode, $langcode);

  // @todo rename "theme_user_profile" to "theme_user", 'account' to 'user'.
  $return['#theme'] = 'user_profile';
  $return['#account'] = $return['#user'];
  return $return;
}