You are here

public function SocialPost::getName in Social Post 8.2

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

Gets the user's name in the provider.

Return value

string User's name in the provider

File

src/Entity/SocialPost.php, line 85

Class

SocialPost
Defines the Social Post entity.

Namespace

Drupal\social_post\Entity

Code

public function getName() {
  return $this
    ->get('name')->value;
}