function social_follow_content_social_user_account_header_account_links in Open Social 8.4
Same name and namespace in other branches
- 8.9 modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 8.5 modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 8.6 modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 8.7 modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 8.8 modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 10.3.x modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 10.0.x modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 10.1.x modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
- 10.2.x modules/social_features/social_follow_content/social_follow_content.module \social_follow_content_social_user_account_header_account_links()
Implements hook_social_user_account_header_account_links().
Adds the "Following" link to the user menu.
File
- modules/
social_features/ social_follow_content/ social_follow_content.module, line 70 - The Social Follow Content module.
Code
function social_follow_content_social_user_account_header_account_links(array $context) {
return [
'my_content' => [
'#type' => 'link',
'#attributes' => [
'title' => new TranslatableMarkup("View content I'm following"),
],
'#title' => new TranslatableMarkup('Following'),
'#weight' => 1000,
] + Url::fromRoute('view.following.following')
->toRenderArray(),
];
}