diff --git a/config/install/dashboards.dashboard.my_dashboard.yml b/config/install/dashboards.dashboard.my_dashboard.yml index cadcea2827b86a0e43744757725b75ed4ca83801..9248448f3522e1638b2f9eee9356a8b9584712ce 100644 --- a/config/install/dashboards.dashboard.my_dashboard.yml +++ b/config/install/dashboards.dashboard.my_dashboard.yml @@ -35,8 +35,6 @@ third_party_settings: id: my_dashboard admin_label: 'My Dashboard' category: '' -frontend: false -weight: 0 sections: - layout_id: uw_3_column @@ -182,3 +180,5 @@ sections: additional: layout_builder_id: content-list third_party_settings: { } +frontend: false +weight: 0 diff --git a/config/install/views.view.uw_view_pub_authors.yml b/config/install/views.view.uw_view_pub_authors.yml index ba7de861ed3eed53d229b2f34510a2067ec56a09..39b33239214c3cdcefc3cd2cf7b32c096c7a0e84 100644 --- a/config/install/views.view.uw_view_pub_authors.yml +++ b/config/install/views.view.uw_view_pub_authors.yml @@ -597,7 +597,7 @@ display: offset: 0 items_per_page: 50 total_pages: null - id: 0 + id: 1 tags: next: ›› previous: ‹‹ diff --git a/config/install/views.view.uw_view_pub_keywords.yml b/config/install/views.view.uw_view_pub_keywords.yml index 7db60a31d1a938d640b7afa9260cc48ba74110a1..3ee991ce98edcf049ccc43a00a5533102ee7aab1 100644 --- a/config/install/views.view.uw_view_pub_keywords.yml +++ b/config/install/views.view.uw_view_pub_keywords.yml @@ -143,7 +143,7 @@ display: offset: 0 items_per_page: 50 total_pages: null - id: 0 + id: 2 tags: next: ›› previous: ‹‹ diff --git a/config/install/views.view.uw_view_pub_reference.yml b/config/install/views.view.uw_view_pub_reference.yml index abff38e0955c9c64938ee35fc3186a03527c97c0..7be3ee33f89526ff183ddf6c1652270b31a6c7ed 100644 --- a/config/install/views.view.uw_view_pub_reference.yml +++ b/config/install/views.view.uw_view_pub_reference.yml @@ -460,7 +460,7 @@ display: offset: 0 items_per_page: 50 total_pages: null - id: 0 + id: 3 tags: next: ›› previous: ‹‹ diff --git a/uw_dashboard.info.yml b/uw_dashboard.info.yml index c139376aff5ccf56f9fbc7bb3a821112bd4921a3..c8c34051196b6e53419c81b3591c8507f477ce6f 100644 --- a/uw_dashboard.info.yml +++ b/uw_dashboard.info.yml @@ -2,8 +2,9 @@ name: 'UW Dashboard Items' description: 'Block placement for dashboard blocks and site management menu' package: WCMS type: module -core_version_requirement: ^9 || ^10 +core_version_requirement: '^9.4 || ^10' dependencies: + - 'bibcite_entity:bibcite_entity' - 'drupal:better_exposed_filters' - 'drupal:config_views' - 'drupal:content_moderation' diff --git a/uw_dashboard.module b/uw_dashboard.module index 743e88495f3004b8333e90de631cfa8bcea60534..11d22fc7595d96ab8adcbdba3b7640db86a55176 100644 --- a/uw_dashboard.module +++ b/uw_dashboard.module @@ -124,38 +124,6 @@ function uw_dashboard_entity_type_alter(array &$entity_types) { $entity_types['webform']->setHandlerClass('list_builder', UWWebformEntityListBuilder::class); } -/** - * Implements hook_views_pre_execute(). - */ -function uw_dashboard_views_pre_execute(ViewExecutable $view) { - - // Have a variable that can be used "globally". - static $view_instances_count; - - // If there is no count yet, set it to 0. - if (!isset($view_instances_count)) { - $view_instances_count = 0; - } - - // The views that need the pager id adjusted. - $view_ids = [ - 'uw_view_content_list', - 'uw_view_pub_reference', - 'uw_view_pub_keywords', - 'uw_view_pub_authors', - ]; - - // If a view needs its pager id adjusted, then do it. - if (in_array($view->id(), $view_ids)) { - - // Increment the counter, so we get the correct pager id. - $view_instances_count++; - - // Set the pager id in the view. - $view->pager->options['id'] = $view_instances_count; - } -} - /** * Implements hook_preprocess_page(). */