function UserRegistrationResource::__construct
Same name in other branches
- 9 core/modules/user/src/Plugin/rest/resource/UserRegistrationResource.php \Drupal\user\Plugin\rest\resource\UserRegistrationResource::__construct()
- 8.9.x core/modules/user/src/Plugin/rest/resource/UserRegistrationResource.php \Drupal\user\Plugin\rest\resource\UserRegistrationResource::__construct()
- 10 core/modules/user/src/Plugin/rest/resource/UserRegistrationResource.php \Drupal\user\Plugin\rest\resource\UserRegistrationResource::__construct()
Constructs a new UserRegistrationResource instance.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
array $serializer_formats: The available serialization formats.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\Core\Config\ImmutableConfig $userSettings: A user settings config instance.
\Drupal\Core\Session\AccountInterface $currentUser: The current user.
\Drupal\Core\Password\PasswordGeneratorInterface $passwordGenerator: The password generator.
Overrides ResourceBase::__construct
File
-
core/
modules/ user/ src/ Plugin/ rest/ resource/ UserRegistrationResource.php, line 58
Class
- UserRegistrationResource
- Represents user registration as a resource.
Namespace
Drupal\user\Plugin\rest\resourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, array $serializer_formats, LoggerInterface $logger, ImmutableConfig $userSettings, AccountInterface $currentUser, PasswordGeneratorInterface $passwordGenerator) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $serializer_formats, $logger);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.