public function SocialPost::getName in Social Post 3.x
Same name and namespace in other branches
- 8.2 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 86
Class
- SocialPost
- Defines the Social Post entity.
Namespace
Drupal\social_post\EntityCode
public function getName() : string {
return $this
->get('name')->value;
}