diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e64f644..5a40bf96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # SOE Profile +11.4.5 +------------------------------------------------------------------------------- +- Remove edit links in views (#821) +- D8CORE-7564: removed decanter link and replaced with identity guide (#822) +- D8CORE-7517 | update event subtitle heading (#816) +- D8Core-7515: adding a few additional "Site Type" options + 11.4.4 ------------------------------------------------------------------------------- - Updated image_effects module for compatibility with imagemagic 4.0.0. diff --git a/composer.json b/composer.json index 672a3d56..4baf7d60 100644 --- a/composer.json +++ b/composer.json @@ -113,7 +113,6 @@ "drupal/next": "^1.2", "drupal/nobots": "^1.0", "drupal/node_revision_delete": "^2.0@RC", - "drupal/page_cache_query_ignore": "^2.2", "drupal/page_manager": "^4.0@beta", "drupal/paragraphs": "^1.11", "drupal/paragraphs_edit": "^3.0", diff --git a/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml b/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml index 6e5ede02..b23560b0 100644 --- a/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml +++ b/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml @@ -18,6 +18,7 @@ dependencies: - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_key - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_search - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_ui + - field.field.config_pages.stanford_basic_site_settings.su_site_created - field.field.config_pages.stanford_basic_site_settings.su_site_dropdowns - field.field.config_pages.stanford_basic_site_settings.su_site_email - field.field.config_pages.stanford_basic_site_settings.su_site_home @@ -35,9 +36,11 @@ dependencies: - change_labels - conditional_fields - cshs + - field_formatter_class - field_group - file - link + - readonly_field_widget - text third_party_settings: field_group: @@ -248,6 +251,42 @@ content: settings: display_label: true third_party_settings: { } + su_site_created: + type: readonly_field_widget + weight: 1 + region: content + settings: + label: above + formatter_type: timestamp + formatter_settings: + timestamp: + date_format: html_date + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + description: '' + formatter_third_party_settings: + empty_fields: + handler: '' + field_formatter_class: + class: '' + field_label: + label_value: '' + label_tag: '' + show_description: false + third_party_settings: + field_formatter_class: + class: '' + change_labels: + field_label_overwrite: '' su_site_dropdowns: type: boolean_checkbox weight: 5 diff --git a/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml b/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml index 358923ec..ad587372 100644 --- a/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml +++ b/config/sync/core.entity_view_display.config_pages.stanford_basic_site_settings.default.yml @@ -18,6 +18,7 @@ dependencies: - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_key - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_search - field.field.config_pages.stanford_basic_site_settings.su_site_algolia_ui + - field.field.config_pages.stanford_basic_site_settings.su_site_created - field.field.config_pages.stanford_basic_site_settings.su_site_dropdowns - field.field.config_pages.stanford_basic_site_settings.su_site_email - field.field.config_pages.stanford_basic_site_settings.su_site_home @@ -150,6 +151,25 @@ content: third_party_settings: { } weight: 23 region: content + su_site_created: + type: timestamp + label: above + settings: + date_format: medium + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + third_party_settings: { } + weight: 26 + region: content su_site_dropdowns: type: boolean label: above diff --git a/config/sync/field.field.config_pages.lockup_settings.su_intro.yml b/config/sync/field.field.config_pages.lockup_settings.su_intro.yml index b0b6212d..c3b192df 100644 --- a/config/sync/field.field.config_pages.lockup_settings.su_intro.yml +++ b/config/sync/field.field.config_pages.lockup_settings.su_intro.yml @@ -20,6 +20,6 @@ default_value: default_value_callback: '' settings: markup: - value: "

\"\"

\r\n\r\n

Decanter Lockup Component

\r\n\r\n

This lockup will appear in the top left corner of the website's main header.

\r\n
" + value: "

\"\"

\r\n\r\n

These lockup options are only available on Stanford Basic. Users of the Minimally Branded or Faculty themes should use the default lockup. To determine which lockup is right for your official unity, consult the Stanford Identity Guide.

\r\n\r\n

This lockup will appear in the top left corner of the website's main header. Separate settings for the lockup at the bottom of your site can be found in the Local Footer settings and will not be affected by changes you make here.

\r\n
" format: stanford_html field_type: markup diff --git a/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_created.yml b/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_created.yml new file mode 100644 index 00000000..d93a1b3a --- /dev/null +++ b/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_created.yml @@ -0,0 +1,19 @@ +uuid: 1e49df54-32d6-4f5b-a5ec-e16691ef2bd4 +langcode: en +status: true +dependencies: + config: + - config_pages.type.stanford_basic_site_settings + - field.storage.config_pages.su_site_created +id: config_pages.stanford_basic_site_settings.su_site_created +field_name: su_site_created +entity_type: config_pages +bundle: stanford_basic_site_settings +label: 'Site Created' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: timestamp diff --git a/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_type.yml b/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_type.yml index b2e8f0eb..c1e396c8 100644 --- a/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_type.yml +++ b/config/sync/field.field.config_pages.stanford_basic_site_settings.su_site_type.yml @@ -15,7 +15,9 @@ label: 'Site Type' description: "What kind of site is this?\r\n" required: false translatable: false -default_value: { } +default_value: + - + value: pre_production default_value_callback: '' settings: { } field_type: list_string diff --git a/config/sync/field.storage.config_pages.su_site_created.yml b/config/sync/field.storage.config_pages.su_site_created.yml new file mode 100644 index 00000000..f13c19d1 --- /dev/null +++ b/config/sync/field.storage.config_pages.su_site_created.yml @@ -0,0 +1,18 @@ +uuid: fe6fd938-d6ff-4a78-afc2-07bb6d493e5b +langcode: en +status: true +dependencies: + module: + - config_pages +id: config_pages.su_site_created +field_name: su_site_created +entity_type: config_pages +type: timestamp +settings: { } +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.config_pages.su_site_type.yml b/config/sync/field.storage.config_pages.su_site_type.yml index 7ba6dd8e..fa646911 100644 --- a/config/sync/field.storage.config_pages.su_site_type.yml +++ b/config/sync/field.storage.config_pages.su_site_type.yml @@ -42,6 +42,15 @@ settings: - value: service_facility label: Service/Facility + - + value: internal + label: Internal + - + value: pre_production + label: Pre-Production + - + value: intranet + label: Intranet - value: other label: Other diff --git a/config/sync/views.view.stanford_basic_pages.yml b/config/sync/views.view.stanford_basic_pages.yml index 2eb9d177..67f9bc03 100644 --- a/config/sync/views.view.stanford_basic_pages.yml +++ b/config/sync/views.view.stanford_basic_pages.yml @@ -360,59 +360,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-news-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit this page' - output_url_as_text: false - absolute: false pager: type: some options: diff --git a/config/sync/views.view.stanford_courses.yml b/config/sync/views.view.stanford_courses.yml index 3f9abcf0..6eb0bd3d 100644 --- a/config/sync/views.view.stanford_courses.yml +++ b/config/sync/views.view.stanford_courses.yml @@ -1262,59 +1262,6 @@ display: separator: ', ' field_api_classes: 0 plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: 0 - alter: - alter_text: 0 - text: '' - make_link: 0 - path: '' - absolute: 0 - external: false - replace_spaces: 0 - path_case: none - trim_whitespace: 0 - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: 0 - max_length: '0' - word_boundary: 1 - ellipsis: 1 - more_link: 0 - more_link_text: '' - more_link_path: '' - strip_tags: 0 - trim: 0 - preserve_tags: '' - html: 0 - element_type: div - element_class: su-courses-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: 1 - empty: '' - hide_empty: 0 - empty_zero: 0 - hide_alter_empty: 1 - text: 'Edit this course item' - output_url_as_text: 0 - absolute: 0 - entity_type: node - plugin_id: entity_link_edit defaults: fields: false pager: false @@ -2635,59 +2582,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-courses-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit this course item' - output_url_as_text: false - absolute: false pager: type: infinite_scroll options: diff --git a/config/sync/views.view.stanford_event_series.yml b/config/sync/views.view.stanford_event_series.yml index 2856176e..d3632083 100644 --- a/config/sync/views.view.stanford_event_series.yml +++ b/config/sync/views.view.stanford_event_series.yml @@ -283,59 +283,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit series' - output_url_as_text: false - absolute: false view_node: id: view_node table: node diff --git a/config/sync/views.view.stanford_events.yml b/config/sync/views.view.stanford_events.yml index e33096c9..0964bead 100644 --- a/config/sync/views.view.stanford_events.yml +++ b/config/sync/views.view.stanford_events.yml @@ -1742,59 +1742,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-events-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'Edit this event item' - output_url_as_text: false - absolute: false - entity_type: node - plugin_id: entity_link_edit defaults: fields: false style: false @@ -2374,9 +2321,9 @@ display: empty_zero: false hide_alter_empty: true click_sort_column: value - type: entity_title_heading + type: string settings: - tag: h3 + link_to_entity: false group_column: value group_columns: { } group_rows: true @@ -2848,59 +2795,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-events-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'Edit this event item' - output_url_as_text: false - absolute: false arguments: term_node_tid_depth: id: term_node_tid_depth @@ -5805,59 +5699,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-events-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'Edit this event item' - output_url_as_text: false - absolute: false - entity_type: node - plugin_id: entity_link_edit defaults: fields: false style: false diff --git a/config/sync/views.view.stanford_news.yml b/config/sync/views.view.stanford_news.yml index c29c0947..d3653238 100644 --- a/config/sync/views.view.stanford_news.yml +++ b/config/sync/views.view.stanford_news.yml @@ -430,59 +430,6 @@ display: text: view output_url_as_text: true absolute: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-news-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: true - empty_zero: false - hide_alter_empty: true - text: 'edit this news item' - output_url_as_text: false - absolute: false pager: type: infinite_scroll options: diff --git a/config/sync/views.view.stanford_person.yml b/config/sync/views.view.stanford_person.yml index 9139f4c2..f7c773e6 100644 --- a/config/sync/views.view.stanford_person.yml +++ b/config/sync/views.view.stanford_person.yml @@ -884,59 +884,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-people-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit this item' - output_url_as_text: false - absolute: false - entity_type: node - plugin_id: entity_link_edit cache_metadata: max-age: -1 contexts: @@ -1674,59 +1621,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: div - element_class: su-people-edit-article - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'edit this item' - output_url_as_text: false - absolute: false arguments: term_node_tid_depth: id: term_node_tid_depth diff --git a/config/sync/views.view.stanford_publications.yml b/config/sync/views.view.stanford_publications.yml index 1691a43b..69045119 100644 --- a/config/sync/views.view.stanford_publications.yml +++ b/config/sync/views.view.stanford_publications.yml @@ -444,59 +444,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: true - text: 'Edit Publication' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true - entity_type: node - plugin_id: entity_link_edit defaults: fields: false block_category: 'Publication (Views)' @@ -707,59 +654,6 @@ display: separator: ', ' field_api_classes: false plugin_id: field - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: false - alter: - alter_text: true - text: 'Edit Publication' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true - entity_type: node - plugin_id: entity_link_edit defaults: fields: false block_category: 'Publication (Views)' @@ -1586,59 +1480,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: true - text: '

Edit Publication

' - make_link: false - path: '' - absolute: true - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: 'Edit Publication' - rel: '' - link_class: su-button--secondary - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: su-button--secondary - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true pager: type: some options: @@ -1908,59 +1749,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - edit_node: - id: edit_node - table: node_field_revision - field: edit_node - relationship: none - group_type: group - admin_label: '' - entity_type: node - plugin_id: entity_link_edit - label: '' - exclude: false - alter: - alter_text: true - text: 'Edit Publication' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: 'Edit Publication' - output_url_as_text: true - absolute: true pager: type: infinite_scroll options: diff --git a/soe_profile.info.yml b/soe_profile.info.yml index 0360f66e..871ba6eb 100644 --- a/soe_profile.info.yml +++ b/soe_profile.info.yml @@ -1,6 +1,6 @@ name: 'SOE Profile' description: 'Jumpstart Website Profile' -version: 11.4.4 +version: 11.4.5 type: profile project: Stanford core_version_requirement: ^10 || ^11 diff --git a/src/Plugin/InstallTask/SiteSettings.php b/src/Plugin/InstallTask/SiteSettings.php index 0b6f9ded..cc367911 100644 --- a/src/Plugin/InstallTask/SiteSettings.php +++ b/src/Plugin/InstallTask/SiteSettings.php @@ -104,6 +104,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition */ public function runTask(array &$install_state) { $this->state->set('nobots', FALSE); + $this->state->set('stanford-created', time()); $node_pages = [ '403_page' => '4b8018dc-49a6-4018-9c54-e8c3e462beee', @@ -138,9 +139,10 @@ public function runTask(array &$install_state) { ->create([ 'type' => 'stanford_basic_site_settings', 'context' => 'a:0:{}', - 'su_hide_ext_link_icons' => TRUE, ]); } + $config_page->set('su_hide_ext_link_icons', TRUE); + $config_page->set('su_site_created', time()); $config_page->set('su_site_email', $site_data['email']); $config_page->set('su_site_name', $site_data['webSiteTitle']); $config_page->save(); diff --git a/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php b/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php index d085be6a..9811eeaa 100644 --- a/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php +++ b/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php @@ -114,6 +114,32 @@ public function setup(): void { 'label' => 'Name', ])->save(); + $field_storage = FieldStorageConfig::create([ + 'field_name' => 'su_hide_ext_link_icons', + 'entity_type' => 'config_pages', + 'type' => 'boolean', + ]); + $field_storage->save(); + FieldConfig::create([ + 'entity_type' => 'config_pages', + 'field_storage' => $field_storage, + 'bundle' => 'stanford_basic_site_settings', + 'label' => 'Hide Ext Links', + ])->save(); + + $field_storage = FieldStorageConfig::create([ + 'field_name' => 'su_site_created', + 'entity_type' => 'config_pages', + 'type' => 'timestamp', + ]); + $field_storage->save(); + FieldConfig::create([ + 'entity_type' => 'config_pages', + 'field_storage' => $field_storage, + 'bundle' => 'stanford_basic_site_settings', + 'label' => 'Created', + ])->save(); + drupal_flush_all_caches(); $data = json_encode([ diff --git a/themes/stanford_basic/theme-settings.php b/themes/stanford_basic/theme-settings.php index 67b20bb4..bc181924 100755 --- a/themes/stanford_basic/theme-settings.php +++ b/themes/stanford_basic/theme-settings.php @@ -55,13 +55,13 @@ function stanford_basic_form_system_theme_settings_alter(array &$form, FormState $img = ''; - $decanter = Link::fromTextAndUrl('Decanter Lockup Component', Url::fromUri('https://decanter.stanford.edu/component/identity-lockup/')) + $identityguide = Link::fromTextAndUrl('Stanford Identity Guide', Url::fromUri('https://identity.stanford.edu/')) ->toString(); $form['options_settings']['stanford_basic_lockup'] = [ '#type' => 'fieldset', '#title' => t('Lockup Settings'), - '#field_prefix' => "

$img

More examples can be found at: $decanter

", + '#field_prefix' => "

$img

Guidance can be found at: $identityguide

", ]; $form['options_settings']['stanford_basic_lockup']['lockup']['#tree'] = TRUE;