You are here

public function DefaultController::previewUser in View Modes Display 8

Returns user.

Parameters

\Drupal\user\UserInterface $user: The user.

Return value

string Preview user.

1 string reference to 'DefaultController::previewUser'
view_modes_display.routing.yml in ./view_modes_display.routing.yml
view_modes_display.routing.yml

File

src/Controller/DefaultController.php, line 53

Class

DefaultController
Class DefaultController.

Namespace

Drupal\view_modes_display\Controller

Code

public function previewUser(UserInterface $user) {
  return $this
    ->preview($user);
}