public function SocialPost::getLink in Social Post 8.2
Same name and namespace in other branches
- 3.x src/Entity/SocialPost.php \Drupal\social_post\Entity\SocialPost::getLink()
Gets the link to the user's profile in provider.
Return value
\Drupal\link\Plugin\Field\FieldType\LinkItem The link object containing the url to the user's profile.
File
- src/
Entity/ SocialPost.php, line 95
Class
- SocialPost
- Defines the Social Post entity.
Namespace
Drupal\social_post\EntityCode
public function getLink() {
return $this
->get('link')[0];
}