public function UserAuthenticator::addUserRecord in Social Post 3.x
Same name and namespace in other branches
- 8.2 src/User/UserAuthenticator.php \Drupal\social_post\User\UserAuthenticator::addUserRecord()
Add user record in Social Post Entity.
Parameters
string $name: The user name in the provider.
int|string $provider_user_id: Unique Social ID returned by social network.
string $url: The URL to the profile in the provider.
string $token: Token to be used for autoposting.
Return value
bool True if User record was created or False otherwise
File
- src/
User/ UserAuthenticator.php, line 48
Class
- UserAuthenticator
- Manages Drupal authentication tasks for Social Post.
Namespace
Drupal\social_post\UserCode
public function addUserRecord($name, $provider_user_id, $url, $token) {
return $this->userManager
->addUserRecord($name, $this
->currentUser()
->id(), $provider_user_id, $url, $token);
}