public function UserController::multiplePage in Profile 8
Builds the listing page for "multiple" profile types.
Parameters
\Drupal\user\UserInterface $user: The user account.
\Drupal\profile\Entity\ProfileTypeInterface $profile_type: The profile type.
Return value
array The response.
1 string reference to 'UserController::multiplePage'
File
- src/
Controller/ UserController.php, line 65
Class
- UserController
- Provides the profile UI for users.
Namespace
Drupal\profile\ControllerCode
public function multiplePage(UserInterface $user, ProfileTypeInterface $profile_type) {
$build = [];
$build['profiles'] = [
'#type' => 'view',
'#name' => 'profiles',
'#display_id' => 'user_page',
'#arguments' => [
$user
->id(),
$profile_type
->id(),
1,
],
'#embed' => TRUE,
];
return $build;
}