From cd88c7cdeaabfabbfb3e6efbe209a91ccee07c33 Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Wed, 3 Jan 2024 10:26:41 -0800 Subject: [PATCH] Update for Drupal 10 --- composer.json | 4 +- .../ubc_science_announcement_extend.info.yml | 2 +- .../ubc_science_announcement_extend.install | 185 ------ ubc_science_blog/ubc_science_blog.info.yml | 2 +- .../ubc_science_event_extend.info.yml | 2 +- ubc_science_guide/ubc_science_guide.info.yml | 2 +- .../ubc_science_homepage_extend.info.yml | 2 +- .../ubc_science_homepage_extend.install | 12 - .../ubc_science_landing_page_extend.info.yml | 2 +- .../ubc_science_landing_page_extend.install | 12 - ubc_science_nodes/ubc_science_nodes.info.yml | 2 +- .../ubc_science_profile_extend.info.yml | 2 +- .../ubc_science_profile_extend.install | 570 ------------------ .../ubc_science_resource.info.yml | 2 +- .../ubc_science_resource.install | 10 - ubc_science_roles/ubc_science_roles.info.yml | 2 +- .../ubc_science_shared_config.info.yml | 2 +- .../ubc_science_shared_config.install | 238 -------- .../ubc_science_taxonomy_terms.info.yml | 2 +- .../ubc_science_taxonomy_terms.install | 6 - 20 files changed, 14 insertions(+), 1047 deletions(-) diff --git a/composer.json b/composer.json index 2cf24bd..9ca77bc 100755 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { "name": "ubc-web-services/ubc_science_shared_config", - "description": "Custom UBC Drupal 9 config modules for the Science suite of websites", + "description": "Custom UBC Drupal 10 config modules for the Science suite of websites", "type": "drupal-module", "require": { - "ubc-web-services/ubc_d8_config_modules": "^5.0@beta" + "ubc-web-services/ubc_d8_config_modules": "^6.0" } } diff --git a/ubc_science_announcement_extend/ubc_science_announcement_extend.info.yml b/ubc_science_announcement_extend/ubc_science_announcement_extend.info.yml index 2084cd1..5902683 100755 --- a/ubc_science_announcement_extend/ubc_science_announcement_extend.info.yml +++ b/ubc_science_announcement_extend/ubc_science_announcement_extend.info.yml @@ -5,4 +5,4 @@ package: UBC Web Services dependencies: - ubc_announcement:ubc_announcement - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_announcement_extend/ubc_science_announcement_extend.install b/ubc_science_announcement_extend/ubc_science_announcement_extend.install index 3c0a4a1..5ec53f9 100755 --- a/ubc_science_announcement_extend/ubc_science_announcement_extend.install +++ b/ubc_science_announcement_extend/ubc_science_announcement_extend.install @@ -235,188 +235,3 @@ function ubc_science_announcement_extend_install() { function ubc_science_announcement_extend_uninstall() { } - /** - * Update 9001 - Update to form and view modes for announcement - */ - -/* function ubc_science_announcement_extend_update_9001() { - $config = \Drupal::service('config.factory'); - $config->getEditable('core.entity_form_display.node.ubc_announcement.default') - ->clear( - 'hidden.field_announcement_department', - 'hidden.field_announcement_image_caption', - 'hidden.field_announcement_industry', - 'hidden.field_announcement_media_contact', - 'hidden.field_announcement_topic', - ) - ->set('dependencies.module', [ - 'allowed_formats', - 'field_group', - 'focal_point', - 'link', - 'maxlength', - 'metatag', - 'path', - 'scheduler', - 'text', - ]) - ->set('third_party_settings.field_group.group_feature_title_override.children', [ - 'field_announcement_type', - 'field_announcement_department', - 'field_announcement_industry', - 'field_announcement_topic', - 'field_announcement_media_contact', - 'field_announcement_tags', - ]) - ->set('content.body', [ - 'weight' => '3', - 'type' => 'text_textarea_with_summary', - 'region' => 'content', - 'third_party_settings' => [ - 'maxlength' => [ - 'maxlength_js' => 'null', - 'maxlength_js_label' => 'Content limited to @limit characters, remaining: @remaining', - 'maxlength_js_summary' => '160', - 'maxlength_js_label_summary' => 'Content limited to @limit characters, remaining: @remaining', - 'maxlength_js_enforce' => 'true', - 'maxlength_js_truncate_html' => 'false', - ], - 'allowed_formats' => [ - 'hide_help' => '0', - 'hide_guidelines' => '0', - ], - ], - 'settings' => [ - 'rows' => '9', - 'placeholder' => '', - 'summary_rows' => '3', - 'show_summary' => 'true', - ], - ]) - ->set('content.field_announcement_type', [ - 'weight' => '4', - 'type' => 'options_select', - 'region' => 'content', - 'settings' => [], - 'third_party_settings' => [], - ]) - ->set('content.field_announcement_department', [ - 'weight' => '5', - 'type' => 'options_select', - 'region' => 'content', - 'settings' => [], - 'third_party_settings' => [], - ]) - ->set('content.field_announcement_industry', [ - 'weight' => '6', - 'type' => 'options_select', - 'region' => 'content', - 'settings' => [], - 'third_party_settings' => [], - ]) - ->set('content.field_announcement_topic', [ - 'weight' => '7', - 'type' => 'options_select', - 'region' => 'content', - 'settings' => [], - 'third_party_settings' => [], - ]) - ->set('content.field_announcement_media_contact', [ - 'weight' => '8', - 'type' => 'options_select', - 'region' => 'content', - 'settings' => [], - 'third_party_settings' => [], - ]) - ->set('content.field_announcement_external_link', [ - 'weight' => '3', - 'type' => 'link_default', - 'region' => 'content', - 'third_party_settings' => [ - 'maxlength' => [ - 'maxlength_js' => '100', - 'maxlength_js_label' => 'Content limited to @limit characters, remaining: @remaining', - ], - ], - 'settings' => [ - 'placeholder_url' => '', - 'placeholder_title' => '', - ], - ]) - ->set('content.field_announcement_image_caption', [ - 'weight' => '2', - 'type' => 'string_textfield', - 'region' => 'content', - 'third_party_settings' => [ - 'maxlength' => [ - 'maxlength_js' => '150', - 'maxlength_js_label' => 'Content limited to @limit characters, remaining: @remaining', - ], - ], - 'settings' => [ - 'size' => '60', - 'placeholder' => 'Add a caption to the feature image if applicable.', - ], - ]) - ->save(); - $config->getEditable('field.field.node.ubc_announcement.field_announcement_feature_image') - ->set('description', 'Add a feature image to the announcement. Feature image must be at least 980x653.') - ->set('settings.file_extensions', 'png jpg jpeg') - ->set('settings.max_resolution', '') - ->set('settings.min_resolution', '980x653') - ->save(); - $config->getEditable('core.entity_view_display.node.ubc_announcement.featured_content') - ->set('dependencies.config', [ - 'core.entity_view_mode.node.featured_content', - 'field.field.node.ubc_announcement.body', - 'field.field.node.ubc_announcement.field_announcement_department', - 'field.field.node.ubc_announcement.field_announcement_external_link', - 'field.field.node.ubc_announcement.field_announcement_feature_image', - 'field.field.node.ubc_announcement.field_announcement_image_caption', - 'field.field.node.ubc_announcement.field_announcement_industry', - 'field.field.node.ubc_announcement.field_announcement_media_contact', - 'field.field.node.ubc_announcement.field_announcement_meta_tags', - 'field.field.node.ubc_announcement.field_announcement_tags', - 'field.field.node.ubc_announcement.field_announcement_topic', - 'field.field.node.ubc_announcement.field_announcement_type', - 'node.type.ubc_announcement', - 'responsive_image.styles.masthead_focal_point', - ]) - ->set('content.field_announcement_feature_image.settings.responsive_image_style', 'masthead_focal_point') - ->set('content.field_announcement_image_caption', [ - 'weight' => '1', - 'type' => 'string', - 'region' => 'content', - 'label' => 'hidden', - 'third_party_settings' => [], - 'settings' => [ - 'link_to_entity' => false, - ], - ]) - ->save(); -} */ - - /** - * Update 9002 - Update to display mode for announcement - */ -/* function ubc_science_announcement_extend_update_9002() { - $config = \Drupal::service('config.factory'); - $config->getEditable('core.entity_view_display.node.ubc_announcement.featured_content') - ->set('dependencies.config', [ - 'core.entity_view_mode.node.featured_content', - 'field.field.node.ubc_announcement.body', - 'field.field.node.ubc_announcement.field_announcement_department', - 'field.field.node.ubc_announcement.field_announcement_external_link', - 'field.field.node.ubc_announcement.field_announcement_feature_image', - 'field.field.node.ubc_announcement.field_announcement_image_caption', - 'field.field.node.ubc_announcement.field_announcement_industry', - 'field.field.node.ubc_announcement.field_announcement_media_contact', - 'field.field.node.ubc_announcement.field_announcement_meta_tags', - 'field.field.node.ubc_announcement.field_announcement_tags', - 'field.field.node.ubc_announcement.field_announcement_topic', - 'field.field.node.ubc_announcement.field_announcement_type', - 'node.type.ubc_announcement', - 'responsive_image.styles.masthead_focal_point', - ]) - ->save(); -} */ \ No newline at end of file diff --git a/ubc_science_blog/ubc_science_blog.info.yml b/ubc_science_blog/ubc_science_blog.info.yml index 2482402..6e59229 100755 --- a/ubc_science_blog/ubc_science_blog.info.yml +++ b/ubc_science_blog/ubc_science_blog.info.yml @@ -5,4 +5,4 @@ package: UBC Web Services dependencies: - drupal:simple_sitemap - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_event_extend/ubc_science_event_extend.info.yml b/ubc_science_event_extend/ubc_science_event_extend.info.yml index 37c98a9..5e74ff4 100755 --- a/ubc_science_event_extend/ubc_science_event_extend.info.yml +++ b/ubc_science_event_extend/ubc_science_event_extend.info.yml @@ -5,4 +5,4 @@ package: UBC Web Services dependencies: - ubc_event:ubc_event - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_guide/ubc_science_guide.info.yml b/ubc_science_guide/ubc_science_guide.info.yml index 606840c..7ca8a7d 100755 --- a/ubc_science_guide/ubc_science_guide.info.yml +++ b/ubc_science_guide/ubc_science_guide.info.yml @@ -6,4 +6,4 @@ dependencies: - drupal:paragraphs - drupal:simple_sitemap - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_homepage_extend/ubc_science_homepage_extend.info.yml b/ubc_science_homepage_extend/ubc_science_homepage_extend.info.yml index 857ba24..1faeb01 100755 --- a/ubc_science_homepage_extend/ubc_science_homepage_extend.info.yml +++ b/ubc_science_homepage_extend/ubc_science_homepage_extend.info.yml @@ -5,4 +5,4 @@ package: UBC Web Services dependencies: - ubc_homepage:ubc_homepage - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_homepage_extend/ubc_science_homepage_extend.install b/ubc_science_homepage_extend/ubc_science_homepage_extend.install index 66e29cf..cb263ca 100755 --- a/ubc_science_homepage_extend/ubc_science_homepage_extend.install +++ b/ubc_science_homepage_extend/ubc_science_homepage_extend.install @@ -222,15 +222,3 @@ function ubc_science_homepage_extend_install() { function ubc_science_homepage_extend_uninstall() { } */ - - /** - * Update 9001 - update feature image extentions - */ -/* function ubc_science_homepage_extend_update_9001() { - $config = \Drupal::service('config.factory'); - $config->getEditable('field.field.node.homepage.field_home_feature_image') - ->set('settings.file_extensions', 'png jpg jpeg') - ->save(); -} - - */ \ No newline at end of file diff --git a/ubc_science_landing_page_extend/ubc_science_landing_page_extend.info.yml b/ubc_science_landing_page_extend/ubc_science_landing_page_extend.info.yml index f7ec086..eb03c6f 100755 --- a/ubc_science_landing_page_extend/ubc_science_landing_page_extend.info.yml +++ b/ubc_science_landing_page_extend/ubc_science_landing_page_extend.info.yml @@ -6,4 +6,4 @@ dependencies: - ubc_landing_page:ubc_landing_page - ubc_landing_page_views:ubc_landing_page_views - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_landing_page_extend/ubc_science_landing_page_extend.install b/ubc_science_landing_page_extend/ubc_science_landing_page_extend.install index caa88e1..230165b 100755 --- a/ubc_science_landing_page_extend/ubc_science_landing_page_extend.install +++ b/ubc_science_landing_page_extend/ubc_science_landing_page_extend.install @@ -213,15 +213,3 @@ function ubc_science_landing_page_extend_install() { */ function ubc_science_landing_page_extend_uninstall() { } - - /** - * Update 9001 - update feature image extensions - */ - -/* function ubc_science_landing_page_extend_update_9001() { - $config = \Drupal::service('config.factory'); - $config->getEditable('field.field.node.ubc_landing_page.field_landing_feature_image') - ->set('settings.file_extensions', 'png jpg jpeg') - ->save(); -} - */ \ No newline at end of file diff --git a/ubc_science_nodes/ubc_science_nodes.info.yml b/ubc_science_nodes/ubc_science_nodes.info.yml index 2722dbf..3c03abf 100644 --- a/ubc_science_nodes/ubc_science_nodes.info.yml +++ b/ubc_science_nodes/ubc_science_nodes.info.yml @@ -2,4 +2,4 @@ name: UBC Science Nodes type: module description: This module alters the node add and edit forms to add some custom markup to improve the editorial experience. package: UBC Web Services -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_profile_extend/ubc_science_profile_extend.info.yml b/ubc_science_profile_extend/ubc_science_profile_extend.info.yml index 3ba7109..297aaf6 100755 --- a/ubc_science_profile_extend/ubc_science_profile_extend.info.yml +++ b/ubc_science_profile_extend/ubc_science_profile_extend.info.yml @@ -6,4 +6,4 @@ dependencies: - drupal:conditional_fields - ubc_profile:ubc_profile - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_profile_extend/ubc_science_profile_extend.install b/ubc_science_profile_extend/ubc_science_profile_extend.install index 0f7cb3a..8324716 100755 --- a/ubc_science_profile_extend/ubc_science_profile_extend.install +++ b/ubc_science_profile_extend/ubc_science_profile_extend.install @@ -429,573 +429,3 @@ function ubc_science_profile_extend_install() { function ubc_science_profile_extend_uninstall() { } /* - -/** - * Update profile accreditation field, view modes and form display - */ -/* -function ubc_science_profile_extend_update_9001() { - $config = \Drupal::service('config.factory'); - - // adjust the field_profile_accreditation title and help text - $config->getEditable('field.field.node.ubc_profile.field_profile_accreditation') - ->set('label', 'Accreditation, Credentials') - ->save(); - // adjust the form display - $config->getEditable('core.entity_form_display.node.ubc_profile.default') - ->clear('hidden.field_profile_address_tax') - ->clear('hidden.field_profile_rank') - ->clear('hidden.field_profile_sidebar_links') - ->clear('hidden.field_profile_type') - ->clear('content.field_profile_office') - ->set('hidden', [ - 'field_profile_office' => true, - ]) - ->set('dependencies.config', [ - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'image.style.medium', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'allowed_formats', - 'field_group', - 'focal_point', - 'link', - 'maxlength', - 'metatag', - 'path', - 'scheduler', - 'telephone', - 'text', - ]) - ->set('third_party_settings.field_group.group_metadata.children', [ - 'field_profile_department_unit', - 'field_profile_address_tax', - 'field_profile_type', - 'field_profile_rank', - 'field_profile_tags', - ]) - ->set('content.field_profile_department_unit', [ - 'weight' => '4', - 'type' => 'options_select', - 'region' => 'content', - 'third_party_settings' => [], - 'settings' => [], - ]) - ->set('content.field_profile_address_tax', [ - 'weight' => '5', - 'type' => 'options_select', - 'region' => 'content', - 'third_party_settings' => [], - 'settings' => [], - ]) - ->set('content.field_profile_rank', [ - 'weight' => '7', - 'type' => 'options_select', - 'region' => 'content', - 'third_party_settings' => [], - 'settings' => [], - ]) - ->set('content.field_profile_type', [ - 'weight' => '6', - 'type' => 'options_select', - 'region' => 'content', - 'third_party_settings' => [], - 'settings' => [], - ]) - ->set('content.field_profile_sidebar_links', [ - 'weight' => '10', - 'type' => 'link_default', - 'region' => 'content', - 'third_party_settings' => [ - 'maxlength' => [ - 'maxlength_js' => '100', - 'maxlength_js_label' => 'Content limited to @limit characters, remaining: @remaining', - ], - ], - 'settings' => [ - 'placeholder_url' => '', - 'placeholder_title' => '', - ], - ]) - ->save(); - $config->getEditable('core.entity_view_display.node.ubc_profile.default') - ->set('dependencies.config', [ - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_program', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'field.field.node.ubc_profile.field_profile_year', - 'image.style.landscape_600x400_focal_point', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'link', - 'metatag', - 'svg_image', - 'telephone', - 'text', - 'user', - ]) - ->set('content.field_profile_address_tax', [ - 'weight' => '16', - 'type' => 'entity_reference_label', - 'region' => 'content', - 'label' => 'hidden', - 'third_party_settings' => [], - 'settings' => [ - 'link' => false, - ], - ]) - ->set('content.field_profile_program', [ - 'type' => 'string', - 'label' => 'hidden', - 'settings' => [ - 'link_to_entity' => false, - ], - 'third_party_settings' => [], - 'region' => 'content', - 'weight' => '17', - ]) - ->set('content.field_profile_rank', [ - 'weight' => '13', - 'type' => 'entity_reference_label', - 'region' => 'content', - 'label' => 'hidden', - 'third_party_settings' => [], - 'settings' => [ - 'link' => false, - ], - ]) - ->set('content.field_profile_type', [ - 'weight' => '14', - 'type' => 'entity_reference_label', - 'region' => 'content', - 'label' => 'hidden', - 'third_party_settings' => [], - 'settings' => [ - 'link' => false, - ], - ]) - ->set('content.field_profile_sidebar_links', [ - 'weight' => '10', - 'type' => 'link', - 'region' => 'content', - 'label' => 'hidden', - 'third_party_settings' => [], - 'settings' => [ - 'trim_length' => '80', - 'url_only' => false, - 'url_plain' => false, - 'rel' => '', - 'target' => '', - ], - ]) - ->set('content.field_profile_year', [ - 'type' => 'number_integer', - 'label' => 'hidden', - 'settings' => [ - 'thousand_separator' => '', - 'prefix_suffix' => true, - ], - 'third_party_settings' => [], - 'region' => 'content', - 'weight' => '18', - ]) - ->save(); - $config->getEditable('core.entity_view_display.node.ubc_profile.card_vertical') - ->set('dependencies.config', [ - 'core.entity_view_mode.node.card_vertical', - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'image.style.landscape_600x400_focal_point', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'svg_image', - 'user', - ]) - ->set('content.field_profile_image', [ - 'weight' => '0', - 'type' => 'image', - 'region' => 'content', - 'label' => 'hidden', - 'third_party_settings' => [], - 'settings' => [ - 'image_link' => '', - 'image_style' => 'landscape_600x400_focal_point', - 'svg_attributes' => [ - 'width' => null, - 'height' => null, - ], - 'svg_render_as_image' => true, - 'image_loading' => [ - 'attribute' => 'lazy', - ], - ], - ]) - ->save(); -} - -function ubc_science_profile_extend_update_9002() { - $config = \Drupal::service('config.factory'); - $config->getEditable('field.field.node.ubc_profile.field_profile_image') - ->set('settings.file_extensions', 'png jpg jpeg') - ->save(); -} - */ -/* function ubc_science_profile_extend_update_9003() { - $config = \Drupal::service('config.factory'); - $config->getEditable('core.entity_form_display.node.ubc_profile.default') - ->set('dependencies.config', [ - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_program', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'field.field.node.ubc_profile.field_profile_year', - 'image.style.medium', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'allowed_formats', - 'conditional_fields', - 'field_group', - 'focal_point', - 'link', - 'maxlength', - 'metatag', - 'path', - 'scheduler', - 'telephone', - 'text', - ]) - ->set('third_party_settings.field_group.group_metadata.children', [ - 'field_profile_department_unit', - 'field_profile_address_tax', - 'field_profile_type', - 'field_profile_program', - 'field_profile_year', - 'field_profile_rank', - 'field_profile_tags', - ]) - ->set('content.field_profile_job_title', [ - 'weight' => '4', - 'type' => 'string_textfield', - 'region' => 'content', - 'settings' => [ - 'size' => '60', - 'placeholder' => '', - ], - 'third_party_settings' => [ - 'maxlength' => [ - 'maxlength_js' => '255', - 'maxlength_js_label' => 'Content limited to @limit characters, remaining: @remaining', - ], - 'conditional_fields' => [], - ], - ]) - ->set('content.field_profile_program', [ - 'weight' => '30', - 'type' => 'string_textfield', - 'region' => 'content', - 'settings' => [ - 'size' => '60', - 'placeholder' => '', - ], - 'third_party_settings' => [ - 'maxlength' => [ - 'maxlength_js' => '255', - 'maxlength_js_label' => 'Content limited to @limit characters, remaining: @remaining', - 'maxlength_js_enforce' => false, - ], - 'conditional_fields' => [], - ], - ]) - ->set('content.field_profile_year', [ - 'weight' => '31', - 'type' => 'number', - 'region' => 'content', - 'settings' => [ - 'placeholder' => '', - ], - 'third_party_settings' => [ - 'conditional_fields' => [], - ], - ]) - ->save(); - $config->getEditable('core.entity_view_display.node.ubc_profile.default') - ->set('dependencies.config', [ - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_program', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'field.field.node.ubc_profile.field_profile_year', - 'image.style.landscape_600x400_focal_point', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'link', - 'metatag', - 'svg_image', - 'telephone', - 'text', - 'user', - ]) - ->set('content.field_profile_program', [ - 'type' => 'string', - 'label' => 'hidden', - 'settings' => [ - 'link_to_entity' => false, - ], - 'third_party_settings' => [], - 'region' => 'content', - 'weight' => '17', - ]) - ->set('content.field_profile_year', [ - 'type' => 'number_integer', - 'label' => 'hidden', - 'settings' => [ - 'thousand_separator' => '', - 'prefix_suffix' => true, - ], - 'third_party_settings' => [], - 'region' => 'content', - 'weight' => '18', - ]) - ->save(); - $config->getEditable('core.entity_view_display.node.ubc_profile.card_horizontal') - ->set('dependencies.config', [ - 'core.entity_view_mode.node.card_horizontal', - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_program', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'field.field.node.ubc_profile.field_profile_year', - 'image.style.square_200', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'svg_image', - 'user', - ]) - ->set('hidden', [ - 'body' => true, - 'field_profile_address_tax' => true, - 'field_profile_email' => true, - 'field_profile_first_name' => true, - 'field_profile_last_name' => true, - 'field_profile_meta_tags' => true, - 'field_profile_office' => true, - 'field_profile_phone' => true, - 'field_profile_program' => true, - 'field_profile_pronouns' => true, - 'field_profile_rank' => true, - 'field_profile_sidebar_links' => true, - 'field_profile_tags' => true, - 'field_profile_type' => true, - 'field_profile_year' => true, - 'links' => true, - ]) - ->save(); - $config->getEditable('core.entity_view_display.node.ubc_profile.card_vertical') - ->set('dependencies.config', [ - 'core.entity_view_mode.node.card_vertical', - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_program', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'field.field.node.ubc_profile.field_profile_year', - 'image.style.landscape_600x400_focal_point', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'svg_image', - 'user', - ]) - ->set('content.field_profile_image', [ - 'weight' => '0', - 'type' => 'image', - 'region' => 'content', - 'label' => 'hidden', - 'third_party_settings' => [], - 'settings' => [ - 'image_link' => '', - 'image_style' => 'landscape_600x400_focal_point', - 'svg_attributes' => [ - 'width' => null, - 'height' => null, - ], - 'svg_render_as_image' => true, - 'image_loading' => [ - 'attribute' => 'lazy', - ], - ], - ]) - ->set('hidden', [ - 'body' => true, - 'field_profile_address_tax' => true, - 'field_profile_email' => true, - 'field_profile_first_name' => true, - 'field_profile_last_name' => true, - 'field_profile_meta_tags' => true, - 'field_profile_office' => true, - 'field_profile_phone' => true, - 'field_profile_program' => true, - 'field_profile_pronouns' => true, - 'field_profile_rank' => true, - 'field_profile_sidebar_links' => true, - 'field_profile_tags' => true, - 'field_profile_type' => true, - 'field_profile_year' => true, - 'links' => true, - ]) - ->save(); - $config->getEditable('core.entity_view_display.node.ubc_profile.teaser') - ->set('dependencies.config', [ - 'core.entity_view_mode.node.teaser', - 'field.field.node.ubc_profile.body', - 'field.field.node.ubc_profile.field_profile_accreditation', - 'field.field.node.ubc_profile.field_profile_address_tax', - 'field.field.node.ubc_profile.field_profile_department_unit', - 'field.field.node.ubc_profile.field_profile_email', - 'field.field.node.ubc_profile.field_profile_first_name', - 'field.field.node.ubc_profile.field_profile_image', - 'field.field.node.ubc_profile.field_profile_job_title', - 'field.field.node.ubc_profile.field_profile_last_name', - 'field.field.node.ubc_profile.field_profile_meta_tags', - 'field.field.node.ubc_profile.field_profile_office', - 'field.field.node.ubc_profile.field_profile_phone', - 'field.field.node.ubc_profile.field_profile_program', - 'field.field.node.ubc_profile.field_profile_pronouns', - 'field.field.node.ubc_profile.field_profile_rank', - 'field.field.node.ubc_profile.field_profile_sidebar_links', - 'field.field.node.ubc_profile.field_profile_tags', - 'field.field.node.ubc_profile.field_profile_type', - 'field.field.node.ubc_profile.field_profile_year', - 'node.type.ubc_profile', - ]) - ->set('dependencies.module', [ - 'telephone', - 'user', - ]) - ->set('hidden', [ - 'body' => true, - 'field_profile_accreditation' => true, - 'field_profile_address_tax' => true, - 'field_profile_first_name' => true, - 'field_profile_image' => true, - 'field_profile_last_name' => true, - 'field_profile_meta_tags' => true, - 'field_profile_office' => true, - 'field_profile_program' => true, - 'field_profile_pronouns' => true, - 'field_profile_rank' => true, - 'field_profile_sidebar_links' => true, - 'field_profile_tags' => true, - 'field_profile_type' => true, - 'field_profile_year' => true, - 'links' => true, - ]) - ->save(); -} */ \ No newline at end of file diff --git a/ubc_science_resource/ubc_science_resource.info.yml b/ubc_science_resource/ubc_science_resource.info.yml index 5505f4e..5213402 100755 --- a/ubc_science_resource/ubc_science_resource.info.yml +++ b/ubc_science_resource/ubc_science_resource.info.yml @@ -8,4 +8,4 @@ dependencies: - drupal:taxonomy - drupal:views - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_resource/ubc_science_resource.install b/ubc_science_resource/ubc_science_resource.install index 97ecb4a..49b8a85 100755 --- a/ubc_science_resource/ubc_science_resource.install +++ b/ubc_science_resource/ubc_science_resource.install @@ -17,13 +17,3 @@ function ubc_science_resource_install() { function ubc_science_resource_extend_uninstall() { } /* - -/** - * Implements hook_update_n(). - * - * @ingroup ubc_science_resource - */ -/* -function ubc_science_resource_update_9001() { -} -*/ diff --git a/ubc_science_roles/ubc_science_roles.info.yml b/ubc_science_roles/ubc_science_roles.info.yml index fdc6c19..93f19ee 100755 --- a/ubc_science_roles/ubc_science_roles.info.yml +++ b/ubc_science_roles/ubc_science_roles.info.yml @@ -9,4 +9,4 @@ dependencies: - ubc_science_landing_page_extend:ubc_science_landing_page_extend - ubc_science_profile_extend:ubc_science_profile_extend - ubc_science_shared_config:ubc_science_shared_config -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_shared_config/ubc_science_shared_config.info.yml b/ubc_science_shared_config/ubc_science_shared_config.info.yml index 678b670..613eab2 100755 --- a/ubc_science_shared_config/ubc_science_shared_config.info.yml +++ b/ubc_science_shared_config/ubc_science_shared_config.info.yml @@ -6,4 +6,4 @@ dependencies: - ubc_general_shared_config:ubc_general_shared_config - ubc_media_entities:ubc_media_entities - ubc_paragraph_entities:ubc_paragraph_entities -core_version_requirement: ^9 || ^10 +core_version_requirement: ^10 diff --git a/ubc_science_shared_config/ubc_science_shared_config.install b/ubc_science_shared_config/ubc_science_shared_config.install index d71b736..a45ca88 100755 --- a/ubc_science_shared_config/ubc_science_shared_config.install +++ b/ubc_science_shared_config/ubc_science_shared_config.install @@ -338,241 +338,3 @@ function ubc_science_shared_config_install() { */ function ubc_science_shared_config_uninstall() { } - -/** - * Update to update text formats - */ -/* function ubc_science_shared_config_update_9001() { - // create the new configuration (will also be enabled upon install) - // now write to the new configuration - $config = \Drupal::service('config.factory'); - - $config->getEditable('filter.format.filtered_text') - ->set('filters.filter_html.settings.allowed_html', '