function social_block_view_search_hero_block_alter in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 8 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 8.2 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 8.3 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 8.4 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 8.5 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 8.6 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 8.7 modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 10.3.x modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 10.0.x modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 10.1.x modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
- 10.2.x modules/social_features/social_search/social_search.module \social_block_view_search_hero_block_alter()
Implements hook_block_view_BASE_BLOCK_ID_alter().
Make the label/title translatable.
File
- modules/
social_features/ social_search/ social_search.module, line 213 - The Social search module.
Code
function social_block_view_search_hero_block_alter(array &$build, BlockPluginInterface $block) {
$build['#configuration']['label'] = t('Search');
}