public function UserRouteController::register

Returns the user registration form.

Return value

array A renderable array containing the user registration form.

1 string reference to 'UserRouteController::register'
user.routing.yml in drupal/core/modules/user/user.routing.yml
drupal/core/modules/user/user.routing.yml

File

drupal/core/modules/user/lib/Drupal/user/UserRouteController.php, line 23
Contains of Drupal\user\UserRouteController.

Class

UserRouteController
Returns responses for User module routes.

Namespace

Drupal\user

Code

public function register() {
  $account = entity_create('user', array());
  return entity_get_form($account, 'register');
}