function UserController::create

Same name in other branches
  1. 8.9.x core/modules/user/src/Controller/UserController.php \Drupal\user\Controller\UserController::create()
  2. 10 core/modules/user/src/Controller/UserController.php \Drupal\user\Controller\UserController::create()
  3. 11.x core/modules/user/src/Controller/UserController.php \Drupal\user\Controller\UserController::create()

Overrides ControllerBase::create

1 call to UserController::create()
UserControllerTest::setUp in core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php

File

core/modules/user/src/Controller/UserController.php, line 86

Class

UserController
Controller routines for user routes.

Namespace

Drupal\user\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('date.formatter'), $container->get('entity_type.manager')
        ->getStorage('user'), $container->get('user.data'), $container->get('logger.factory')
        ->get('user'), $container->get('flood'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.