You are here

public function BulkUserRegistrationInterface::createUser in Bulk User Registration 8

Creates and saves a user.

Parameters

array $userData: Structured array of user data.

string $defaultRole: The machine name of the default user role.

Return value

\Drupal\user\UserInterface The saved user.

1 method overrides BulkUserRegistrationInterface::createUser()
BulkUserRegistration::createUser in src/BulkUserRegistration.php
Creates and saves a user.

File

src/BulkUserRegistrationInterface.php, line 31

Class

BulkUserRegistrationInterface
The bulk user registration interface.

Namespace

Drupal\bulk_user_registration

Code

public function createUser(array $userData, $defaultRole);