function social_group_preprocess_views_view in Open Social 8.9
Same name and namespace in other branches
- 8.5 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
- 8.6 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
- 8.7 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
- 8.8 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
- 10.3.x modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
- 10.0.x modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
- 10.1.x modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
- 10.2.x modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
Implements hook_preprocess_HOOK().
File
- modules/
social_features/ social_group/ social_group.module, line 1394 - The Social group module.
Code
function social_group_preprocess_views_view(&$variables) {
/** @var \Drupal\views\ViewExecutable $view */
$view =& $variables['view'];
if ($view
->id() === 'group_manage_members') {
$entity = \Drupal::entityTypeManager()
->getStorage('block')
->load('socialblue_local_actions');
$variables['header']['actions'] = \Drupal::entityTypeManager()
->getViewBuilder('block')
->view($entity);
}
}