class UserRenderController

Render controller for users.

Hierarchy

Expanded class hierarchy of UserRenderController

File

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

Namespace

Drupal\user
View source
class UserRenderController extends EntityRenderController {

  /**
   * Overrides Drupal\Core\Entity\EntityRenderController::getBuildDefaults().
   */
  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;
  }

}

Members