public function TweetEntity::setUserMentionsTags in Tweet Feed 4.x
Same name and namespace in other branches
- 8.3 src/Entity/TweetEntity.php \Drupal\tweet_feed\Entity\TweetEntity::setUserMentionsTags()
File
- src/
Entity/ TweetEntity.php, line 347
Class
- TweetEntity
- Defines the Tweet Feed Tweet entity.
Namespace
Drupal\tweet_feed\EntityCode
public function setUserMentionsTags($user_mentions_tags) {
$tags = [];
foreach ($user_mentions_tags as $user_mentions_tag) {
$tags[]['target_id'] = $user_mentions_tag;
}
$this
->set('user_mentions_tags', $tags);
return $this;
}