Skip to content
Snippets Groups Projects
Commit 28446dc0 authored by Mykola Antoshchuk's avatar Mykola Antoshchuk
Browse files

Issue #3287806 by Mykola Antoshchuk: Automated Drupal 10 compatibility fixes

parent bb94cf65
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ function grids_theme($existing, $type, $theme, $path) {
function grids_theme_suggestions_grids_layout_fields_alter(array &$suggestions, array $variables) {
if (isset($variables['context']) && $context = $variables['context']) {
if (($plugin = isset($context['fields_plugin']) ? $context['fields_plugin'] : FALSE) && $plugin instanceof PluginBase) {
$suggestions = array_unique(array_merge($suggestions, $plugin->view->buildThemeFunctions('grids_layout_fields')));
$suggestions = array_reverse(array_unique(array_merge($suggestions, $plugin->view->buildThemeFunctions('grids_layout_fields'))));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment