You are here

public function SocialPost::getProviderUserId in Social Post 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/SocialPost.php \Drupal\social_post\Entity\SocialPost::getProviderUserId()

Gets User ID in provider.

Return value

string User ID in provider.

File

src/Entity/SocialPost.php, line 66

Class

SocialPost
Defines the Social Post entity.

Namespace

Drupal\social_post\Entity

Code

public function getProviderUserId() : string {
  return $this
    ->get('provider_user_id')->value;
}