Skip to content
Snippets Groups Projects
Commit e3d52c0f authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3381188 by Grimreaper: Views row: pass the entity in the context

parent 52fbf272
No related branches found
No related tags found
1 merge request!45Issue #3381188: Views row: pass the entity in the context
......@@ -69,6 +69,7 @@ function template_preprocess_pattern_views_row(array &$variables) {
$variables['pattern']['#context']['display'] = $view->current_display;
$variables['pattern']['#context']['view'] = $view;
$variables['pattern']['#context']['row'] = $row;
$variables['pattern']['#context']['entity'] = $row->_entity;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment