From 9df5ac4bfba865e087455d8d243c3867e40383b2 Mon Sep 17 00:00:00 2001 From: Alex Finnarn Date: Thu, 22 Feb 2024 12:18:16 -0500 Subject: [PATCH] adjust config for field type enhancers --- ...onapi_extras.jsonapi_field_type_config.yml | 439 ++++++++---------- .../src/Form/GitForm.php | 2 + 2 files changed, 198 insertions(+), 243 deletions(-) diff --git a/docroot/modules/custom/va_gov_api/config/install/jsonapi_extras.jsonapi_field_type_config.yml b/docroot/modules/custom/va_gov_api/config/install/jsonapi_extras.jsonapi_field_type_config.yml index 11669bebf7..43c444635c 100644 --- a/docroot/modules/custom/va_gov_api/config/install/jsonapi_extras.jsonapi_field_type_config.yml +++ b/docroot/modules/custom/va_gov_api/config/install/jsonapi_extras.jsonapi_field_type_config.yml @@ -1,245 +1,198 @@ type: config_entity label: 'JSON:API Field Type Config' -mapping: - disabled: false - resourceFieldTypes: - address: - fieldType: address - enhancer: - id: '' - settings: null - allow_only_one: - fieldType: allow_only_one - enhancer: - id: '' - settings: null - boolean: - fieldType: boolean - enhancer: - id: '' - settings: null - changed: - fieldType: changed - enhancer: - id: '' - settings: null - computed_breadcrumbs: - fieldType: computed_breadcrumbs - enhancer: - id: '' - settings: null - created: - fieldType: created - enhancer: - id: '' - settings: null - daterange: - fieldType: daterange - enhancer: - id: '' - settings: null - datetime: - fieldType: datetime - enhancer: - id: '' - settings: null - email: - fieldType: email - enhancer: - id: '' - settings: null - entity_field_fetch: - fieldType: entity_field_fetch - enhancer: - id: '' - settings: null - entity_reference: - fieldType: entity_reference - enhancer: - id: '' - settings: null - entity_reference_revisions: - fieldType: entity_reference_revisions - enhancer: - id: '' - settings: null - file: - fieldType: file - enhancer: - id: '' - settings: null - file_uri: - fieldType: file_uri - enhancer: - id: '' - settings: null - geofield: - fieldType: geofield - enhancer: - id: '' - settings: null - hms: - fieldType: hms - enhancer: - id: '' - settings: null - image: - fieldType: image - enhancer: - id: '' - settings: null - integer: - fieldType: integer - enhancer: - id: '' - settings: null - language: - fieldType: language - enhancer: - id: '' - settings: null - layout_section: - fieldType: layout_section - enhancer: - id: '' - settings: null - link: - fieldType: link - enhancer: - id: '' - settings: null - list_integer: - fieldType: list_integer - enhancer: - id: '' - settings: null - list_string: - fieldType: list_string - enhancer: - id: '' - settings: null - magichead: - fieldType: magichead - enhancer: - id: '' - settings: null - map: - fieldType: map - enhancer: - id: '' - settings: null - markup: - fieldType: markup - enhancer: - id: '' - settings: null - mermaid_diagram: - fieldType: mermaid_diagram - enhancer: - id: '' - settings: null - metatag: - fieldType: metatag - enhancer: - id: '' - settings: null - metatag_computed: - fieldType: metatag_computed - enhancer: - id: '' - settings: null - office_hours: - fieldType: office_hours - enhancer: - id: '' - settings: null - password: - fieldType: password - enhancer: - id: '' - settings: null - path: - fieldType: path - enhancer: - id: '' - settings: null - redirect_source: - fieldType: redirect_source - enhancer: - id: '' - settings: null - smartdate: - fieldType: smartdate - enhancer: - id: '' - settings: null - social_media_links_field: - fieldType: social_media_links_field - enhancer: - id: '' - settings: null - string: - fieldType: string - enhancer: - id: '' - settings: null - string_long: - fieldType: string_long - enhancer: - id: '' - settings: null - tablefield: - fieldType: tablefield - enhancer: - id: '' - settings: null - telephone: - fieldType: telephone - enhancer: - id: '' - settings: null - text: - fieldType: text - enhancer: - id: '' - settings: null - text_long: - fieldType: text_long - enhancer: - id: '' - settings: null - text_with_summary: - fieldType: text_with_summary - enhancer: - id: '' - settings: null - timestamp: - fieldType: timestamp - enhancer: - id: '' - settings: null - tzfield: - fieldType: tzfield - enhancer: - id: '' - settings: null - uri: - fieldType: uri - enhancer: - id: '' - settings: null - uuid: - fieldType: uuid - enhancer: - id: '' - settings: null - video_embed_field: - fieldType: video_embed_field - enhancer: - id: '' - settings: null - viewfield: - fieldType: viewfield - enhancer: - id: '' - settings: null +disabled: false +resourceFields: + address: + fieldName: address + enhancer: + id: '' + allow_only_one: + fieldName: allow_only_one + enhancer: + id: '' + boolean: + fieldName: boolean + enhancer: + id: '' + changed: + fieldName: changed + enhancer: + id: '' + computed_breadcrumbs: + fieldName: computed_breadcrumbs + enhancer: + id: '' + created: + fieldName: created + enhancer: + id: '' + daterange: + fieldName: daterange + enhancer: + id: '' + datetime: + fieldName: datetime + enhancer: + id: '' + email: + fieldName: email + enhancer: + id: '' + entity_field_fetch: + fieldName: entity_field_fetch + enhancer: + id: '' + entity_reference: + fieldName: entity_reference + enhancer: + id: '' + entity_reference_revisions: + fieldName: entity_reference_revisions + enhancer: + id: '' + file: + fieldName: file + enhancer: + id: '' + file_uri: + fieldName: file_uri + enhancer: + id: '' + geofield: + fieldName: geofield + enhancer: + id: '' + hms: + fieldName: hms + enhancer: + id: '' + image: + fieldName: image + enhancer: + id: '' + integer: + fieldName: integer + enhancer: + id: '' + language: + fieldName: language + enhancer: + id: '' + layout_section: + fieldName: layout_section + enhancer: + id: '' + link: + fieldName: link + enhancer: + id: 'url_link' + settings: + absolute_url: '1' + list_integer: + fieldName: list_integer + enhancer: + id: '' + list_string: + fieldName: list_string + enhancer: + id: '' + magichead: + fieldName: magichead + enhancer: + id: '' + map: + fieldName: map + enhancer: + id: '' + markup: + fieldName: markup + enhancer: + id: '' + mermaid_diagram: + fieldName: mermaid_diagram + enhancer: + id: '' + metatag: + fieldName: metatag + enhancer: + id: '' + metatag_computed: + fieldName: metatag_computed + enhancer: + id: '' + office_hours: + fieldName: office_hours + enhancer: + id: '' + password: + fieldName: password + enhancer: + id: '' + path: + fieldName: path + enhancer: + id: '' + redirect_source: + fieldName: redirect_source + enhancer: + id: '' + smartdate: + fieldName: smartdate + enhancer: + id: '' + social_media_links_field: + fieldName: social_media_links_field + enhancer: + id: '' + string: + fieldName: string + enhancer: + id: '' + string_long: + fieldName: string_long + enhancer: + id: '' + tablefield: + fieldName: tablefield + enhancer: + id: '' + telephone: + fieldName: telephone + enhancer: + id: '' + text: + fieldName: text + enhancer: + id: '' + text_long: + fieldName: text_long + enhancer: + id: '' + text_with_summary: + fieldName: text_with_summary + enhancer: + id: '' + timestamp: + fieldName: timestamp + enhancer: + id: '' + tzfield: + fieldName: tzfield + enhancer: + id: '' + uri: + fieldName: uri + enhancer: + id: '' + uuid: + fieldName: uuid + enhancer: + id: '' + video_embed_field: + fieldName: video_embed_field + enhancer: + id: '' + viewfield: + fieldName: viewfield + enhancer: + id: '' diff --git a/docroot/modules/custom/va_gov_content_release/src/Form/GitForm.php b/docroot/modules/custom/va_gov_content_release/src/Form/GitForm.php index f94a183cd2..d0759ea9c8 100644 --- a/docroot/modules/custom/va_gov_content_release/src/Form/GitForm.php +++ b/docroot/modules/custom/va_gov_content_release/src/Form/GitForm.php @@ -79,6 +79,8 @@ public static function create(ContainerInterface $container) { * Object containing current form state. */ public function buildForm(array $form, FormStateInterface $form_state) { + $form = parent::buildForm($form, $form_state); + $form['build_request']['actions']['#type'] = 'actions'; $form['build_request']['actions']['submit'] = [ '#type' => 'submit',