You are here

function social_group_preprocess_views_view in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
  2. 8.5 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
  3. 8.6 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
  4. 8.7 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
  5. 8.8 modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
  6. 10.3.x modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
  7. 10.0.x modules/social_features/social_group/social_group.module \social_group_preprocess_views_view()
  8. 10.1.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 1587
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);
  }
}