function hook_social_user_account_header_items_alter in Open Social 8.9
Same name and namespace in other branches
- 8.4 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 8.5 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 8.6 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 8.7 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 8.8 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 10.3.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 10.0.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 10.1.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
- 10.2.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_items_alter()
Allows you to alter the results of hook_social_user_account_header_items.
Parameters
array $items: The results of all hook_social_user_account_header_items functions.
array $context: The context that was provided to the block rendering these links.
See also
hook_social_user_account_header_items()
4 functions implement hook_social_user_account_header_items_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- social_activity_social_user_account_header_items_alter in modules/
social_features/ social_activity/ social_activity.module - Implements hook_social_user_account_header_items().
- social_core_social_user_account_header_items_alter in modules/
social_features/ social_core/ social_core.module - Implements hook_social_user_account_header_items().
- social_private_message_social_user_account_header_items_alter in modules/
social_features/ social_private_message/ social_private_message.module - Implements hook_social_user_account_header_items().
- social_profile_social_user_account_header_items_alter in modules/
social_features/ social_profile/ social_profile.module - Implements hook_social_user_account_header_items_alter().
1 invocation of hook_social_user_account_header_items_alter()
- AccountHeaderBlock::build in modules/
social_features/ social_user/ src/ Plugin/ Block/ AccountHeaderBlock.php - Builds and returns the renderable array for this block plugin.
File
- modules/
social_features/ social_user/ social_user.api.php, line 149 - Hooks provided by the Social_user module.
Code
function hook_social_user_account_header_items_alter(array &$items, array $context) {
// Alter the icon of the private message shortcut.
if (isset($items['messages'])) {
$items['messages']['#icon'] = 'icon-envelope';
}
}