eZ\Publish\Core\SignalSlot\UserService::newUserCreateStruct PHP Method

newUserCreateStruct() public method

Instantiate a user create class.
public newUserCreateStruct ( string $login, string $email, string $password, string $mainLanguageCode, eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType = null ) : eZ\Publish\API\Repository\Values\User\UserCreateStruct
$login string the login of the new user
$email string the email of the new user
$password string the plain password of the new user
$mainLanguageCode string the main language for the underlying content object
$contentType eZ\Publish\API\Repository\Values\ContentType\ContentType 5.x the content type for the underlying content object. In 4.x it is ignored and taken from the configuration
return eZ\Publish\API\Repository\Values\User\UserCreateStruct
    public function newUserCreateStruct($login, $email, $password, $mainLanguageCode, $contentType = null)
    {
        return $this->service->newUserCreateStruct($login, $email, $password, $mainLanguageCode, $contentType);
    }