function activity_creator_preprocess_views_view_unformatted in Open Social 8.2
Same name and namespace in other branches
- 8 modules/custom/activity_creator/activity_creator.module \activity_creator_preprocess_views_view_unformatted()
- 8.3 modules/custom/activity_creator/activity_creator.module \activity_creator_preprocess_views_view_unformatted()
Implements hook_preprocess_views_view_unformatted().
File
- modules/
custom/ activity_creator/ activity_creator.module, line 228 - Activity Creator module file.
Code
function activity_creator_preprocess_views_view_unformatted(&$variables) {
$view = $variables['view'];
$view_name = $view->storage
->id();
if ($view_name == 'activity_stream_notifications') {
$notification_url = Url::fromRoute('view.activity_stream_notifications.page_1');
$variables['notification_url'] = $notification_url;
}
}