diff --git a/config/install/language.mappings.yml b/config/install/language.mappings.yml deleted file mode 100644 index 3bdb4f10272e2924e5def20853f6806e99ebaf15..0000000000000000000000000000000000000000 --- a/config/install/language.mappings.yml +++ /dev/null @@ -1,11 +0,0 @@ -map: - 'no': nb - pt: pt-pt - zh: zh-hans - zh-tw: zh-hant - zh-hk: zh-hant - zh-mo: zh-hant - zh-cht: zh-hant - zh-cn: zh-hans - zh-sg: zh-hans - zh-chs: zh-hans diff --git a/config/install/language.negotiation.yml b/config/install/language.negotiation.yml deleted file mode 100644 index dde0bea4d515dc0a9e7a969cea483d230df27622..0000000000000000000000000000000000000000 --- a/config/install/language.negotiation.yml +++ /dev/null @@ -1,9 +0,0 @@ -session: - parameter: language -url: - source: path_prefix - prefixes: - en: '' - domains: - en: '' -selected_langcode: site_default diff --git a/config/install/language.types.yml b/config/install/language.types.yml deleted file mode 100644 index 4d48251fdfe9fddada96f3f93e79147ecaeceb4d..0000000000000000000000000000000000000000 --- a/config/install/language.types.yml +++ /dev/null @@ -1,17 +0,0 @@ -all: - - language_interface - - language_content - - language_url -configurable: - - language_interface -negotiation: - language_content: - enabled: - language-interface: 0 - language_url: - enabled: - language-url: 0 - language-url-fallback: 1 - language_interface: - enabled: - language-url: 0 diff --git a/config/install/taxonomy_set_lineage.settings.yml b/config/install/taxonomy_set_lineage.settings.yml new file mode 100644 index 0000000000000000000000000000000000000000..fe242b3b8aba6f6f142a7f4660b2160de2c271f3 --- /dev/null +++ b/config/install/taxonomy_set_lineage.settings.yml @@ -0,0 +1,8 @@ +vocabulary: + - uw_vocab_catalog_categories +entities: + - node +bundles: + - uw_ct_catalog_item +fields: + - node.uw_ct_catalog_item.field_uw_catalog_category diff --git a/config/install/user_prune.settings.yml b/config/install/user_prune.settings.yml new file mode 100644 index 0000000000000000000000000000000000000000..0e880f34f5a49452b5046f81d3d84ccb95287b76 --- /dev/null +++ b/config/install/user_prune.settings.yml @@ -0,0 +1,23 @@ +langcode: en +year_select: 31556926 +month_select: 0 +day_select: 86400 +user_number_select: 25 +user_status: all +user_never_logged_in: false +user_with_comment: true +delete_users_on_cron: true +message: Hello +user_roles_checkbox: + uw_role_site_owner: uw_role_site_owner + uw_role_site_manager: uw_role_site_manager + uw_role_content_editor: uw_role_content_editor + uw_role_content_author: uw_role_content_author + uw_role_form_editor: uw_role_form_editor + uw_role_form_results_access: uw_role_form_results_access + uw_role_legacy: uw_role_legacy + administrator: 0 + uw_role_private_content_viewer: 0 +submit: 'Save configuration' +form_id: user_prune_settings_form +op: 'Save configuration' diff --git a/uw_sites_all.features.yml b/uw_sites_all.features.yml index 060a98e7a2f994a5c4cfd7618bc3d4c05edb4adb..fb244286f3e7793d955e7acd6e6ca43f9226efd4 100644 --- a/uw_sites_all.features.yml +++ b/uw_sites_all.features.yml @@ -1 +1,5 @@ +excluded: + - language.mappings + - language.negotiation + - language.types required: true diff --git a/uw_sites_all.info.yml b/uw_sites_all.info.yml index 265e07f64eae7d01faf87f069da6ef1c856f87b2..19ade4fd72d51a69c2649bce9b0844ba6e4de67d 100644 --- a/uw_sites_all.info.yml +++ b/uw_sites_all.info.yml @@ -22,11 +22,6 @@ dependencies: - 'diff:diff' - 'draggableviews:draggableviews' - 'drupal:aggregator' - - 'drupal:allowed_formats' - - 'drupal:autocomplete_deluxe' - - 'drupal:autologout' - - 'drupal:automated_cron' - - 'drupal:better_exposed_filters' - 'drupal:block' - 'drupal:block_content' - 'drupal:block_form_alter' @@ -49,8 +44,6 @@ dependencies: - 'drupal:filter' - 'drupal:image' - 'drupal:inline_form_errors' - - 'drupal:jsonapi' - - 'drupal:jsonapi_extras' - 'drupal:language' - 'drupal:layout_builder' - 'drupal:layout_discovery' @@ -114,6 +107,7 @@ dependencies: - 'metatag:metatag_twitter_cards' - 'metatag:metatag_views' - 'module_filter:module_filter' + - 'multilingual_exclude:multilingual_exclude' - 'multivalue_form_element:multivalue_form_element' - 'node_revision_delete:node_revision_delete' - 'office_hours:office_hours' @@ -145,6 +139,7 @@ dependencies: - 'schema_metatag:schema_service' - 'schema_metatag:schema_web_page' - 'section_library:section_library' + - 'show_node_aliases:show_node_aliases' - 'simplesamlphp_auth:simplesamlphp_auth' - 'simplesamlphp_custom_attributes:simplesamlphp_custom_attributes' - 'simplify_menu:simplify_menu' @@ -153,6 +148,7 @@ dependencies: - 'subpathauto:subpathauto' - 'svg_image:svg_image' - 'taxonomy_max_depth:taxonomy_max_depth' + - 'taxonomy_set_lineage:taxonomy_set_lineage' - 'taxonomy_term_locks:taxonomy_term_depth' - 'taxonomy_term_locks:taxonomy_term_locks' - 'token:token' @@ -160,6 +156,7 @@ dependencies: - 'tvi:tvi' - 'twig_field_value:twig_field_value' - 'twig_tweak:twig_tweak' + - 'user_prune:user_prune' - 'userprotect:userprotect' - 'uw_additional_options:uw_additional_options' - 'uw_api:uw_api' diff --git a/uw_sites_all.install b/uw_sites_all.install index e5e64192d508c507b3740f40e696363b5cc493a7..426ffba33ee40041866e03555b2305a43ac3abaa 100644 --- a/uw_sites_all.install +++ b/uw_sites_all.install @@ -1908,3 +1908,84 @@ function uw_sites_all_update_9157(&$sandbox) { function uw_sites_all_update_9158(&$sandbox) { \Drupal::service('module_installer')->install(['views_event_dispatcher']); } + +/** + * Uninstall jsonapi modules. + */ +function uw_sites_all_update_9159(&$sandbox) { + + // The module handler service. + $module_handler = \Drupal::service('module_handler'); + + // Modules to check and install. + $modules = [ + 'jsonapi', + 'jsonapi_extras', + ]; + + // Step through each module and if installed, + // then uninstall it. + foreach ($modules as $module) { + if (\Drupal::service('module_handler')->moduleExists($module)) { + \Drupal::service('module_installer')->uninstall([$module]); + } + } +} + +/** + * Install show_node_aliases. + */ +function uw_sites_all_update_9160(&$sandbox) { + \Drupal::service('module_installer')->install(['show_node_aliases']); +} + +/** + * Install taxonomy_set_lineage. + */ +function uw_sites_all_update_9161(&$sandbox) { + \Drupal::service('module_installer')->install(['taxonomy_set_lineage']); +} + +/** + * Install js_cookie. + */ +function uw_sites_all_update_9162(&$sandbox) { + \Drupal::service('module_installer')->install(['js_cookie']); +} + +/** + * Install user_prune. + */ +function uw_sites_all_update_9163(&$sandbox) { + \Drupal::service('module_installer')->install(['user_prune']); +} + +/** + * Revert FillPDF config for views redirection. + */ +function uw_sites_all_update_9164() { + // Load the config factory. + $config_factory = \Drupal::configFactory(); + + // Load the view. + $view = $config_factory->getEditable('views.view.fillpdf_form_fields'); + + // Get the display options. + $display = $view->get('display'); + + // Set the destination back to TRUE. + $display['default']['display_options']['fields']['dropbutton']['destination'] = TRUE; + + // Set the display options on the view. + $view->set('display', $display); + + // Save the view. + $view->save(); +} + +/** + * Install multilingual_exclude. + */ +function uw_sites_all_update_9165(&$sandbox) { + \Drupal::service('module_installer')->install(['multilingual_exclude']); +}