diff --git a/patches/contrib/ui_patterns_views-preview.patch b/patches/contrib/ui_patterns_views-preview.patch index 7c3ca24272..76c8c654bc 100644 --- a/patches/contrib/ui_patterns_views-preview.patch +++ b/patches/contrib/ui_patterns_views-preview.patch @@ -58,7 +58,7 @@ index 0000000..7f1e292 + +{%- endif %} diff --git a/modules/ui_patterns_views/ui_patterns_views.module b/modules/ui_patterns_views/ui_patterns_views.module -index 58f0b04..b7020a2 100644 +index c33331b..79b8548 100644 --- a/modules/ui_patterns_views/ui_patterns_views.module +++ b/modules/ui_patterns_views/ui_patterns_views.module @@ -6,6 +6,9 @@ @@ -71,9 +71,9 @@ index 58f0b04..b7020a2 100644 /** * Implements hook_theme(). -@@ -15,6 +18,9 @@ function ui_patterns_views_theme() { - 'pattern_views_row' => [ - 'variables' => ['view' => NULL, 'options' => [], 'row' => NULL], +@@ -19,6 +22,9 @@ function ui_patterns_views_theme() { + 'row' => NULL, + ], ], + 'pattern_view_field' => [ + 'variables' => ['view' => NULL, 'field' => NULL, 'row' => NULL], @@ -81,7 +81,7 @@ index 58f0b04..b7020a2 100644 ]; } -@@ -35,37 +41,122 @@ function template_preprocess_pattern_views_row(array &$variables) { +@@ -39,37 +45,122 @@ function template_preprocess_pattern_views_row(array &$variables) { $options = $variables['options']; $row = $variables['row']; @@ -196,7 +196,7 @@ index 58f0b04..b7020a2 100644 - $variables['pattern'] = []; - if ($view->preview && !isset($view->element['#embed'])) { -- \Drupal::messenger()->addWarning(t("Pattern Views row plugin does not support preview.")); +- \Drupal::messenger()->addWarning(t('Pattern Views row plugin does not support preview.')); - $variables['pattern'] = ['#type' => 'status_messages']; - } - elseif (!empty($fields)) {