diff --git a/.githooks/pre-commit b/.githooks/pre-commit old mode 100755 new mode 100644 index afd52bdd..fe9e60ec --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -8,7 +8,7 @@ PHPCBF_BIN="./vendor/bin/phpcbf" drupalfiles=$(git diff --cached --name-only --diff-filter=ACM HEAD | grep -E '\.php$|\.module$|\.inc$|\.install$|\.test$|\.profile$|\.theme$|\.css$|\.info$|\.txt$|\.md$|\.yml$|\.theme$') -if [ "$drupalfiles" != "" ] +if [ $drupalfiles != "" ] then drupalfailed=0 echo "Running Code Sniffer..." @@ -25,13 +25,14 @@ then fi fi + commitfailed=$drupalfailed + if [ $drupalfailed != 0 ] then echo "PHPCS failed, errors found not fixable automatically, git commit denied!" - commitfailed=$drupalfailed fi fi #### End of Code Sniffer -exit $commitfailed \ No newline at end of file +exit $commitfailed diff --git a/config/default/core.entity_form_display.node.h_collection.default.yml b/config/default/core.entity_form_display.node.h_collection.default.yml index 8df56ae7..eff70422 100644 --- a/config/default/core.entity_form_display.node.h_collection.default.yml +++ b/config/default/core.entity_form_display.node.h_collection.default.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -86,7 +87,7 @@ third_party_settings: label: Related group_h_dates: children: - - field_h_date_updated + - field_h_date_reviewed - group_system_dates parent_name: group_h_tabs weight: 33 @@ -134,10 +135,11 @@ third_party_settings: label: Tabs group_system_dates: children: + - field_h_date_created + - field_h_date_updated - field_h_date_published - - field_h_date_reviewed parent_name: group_h_dates - weight: 24 + weight: 28 format_type: details region: content format_settings: @@ -216,8 +218,14 @@ content: third_party_settings: { } type: number region: content + field_h_date_created: + weight: 35 + settings: { } + third_party_settings: { } + type: datetime_default + region: content field_h_date_published: - weight: 25 + weight: 37 settings: { } third_party_settings: { } type: datetime_default @@ -229,7 +237,7 @@ content: type: datetime_default region: content field_h_date_updated: - weight: 23 + weight: 36 settings: { } third_party_settings: { } type: datetime_default diff --git a/config/default/core.entity_form_display.node.h_foi_request.default.yml b/config/default/core.entity_form_display.node.h_foi_request.default.yml index 9732fa6e..41c58de1 100644 --- a/config/default/core.entity_form_display.node.h_foi_request.default.yml +++ b/config/default/core.entity_form_display.node.h_foi_request.default.yml @@ -9,6 +9,7 @@ dependencies: - field.field.node.h_foi_request.field_h_content_owner - field.field.node.h_foi_request.field_h_content_pass_sentences - field.field.node.h_foi_request.field_h_content_readability + - field.field.node.h_foi_request.field_h_date_created - field.field.node.h_foi_request.field_h_date_published - field.field.node.h_foi_request.field_h_date_reviewed - field.field.node.h_foi_request.field_h_date_updated @@ -148,8 +149,9 @@ third_party_settings: label: Readability group_system_dates: children: - - field_h_date_published + - field_h_date_created - field_h_date_updated + - field_h_date_published parent_name: group_h_dates weight: 28 format_type: details @@ -212,9 +214,15 @@ content: settings: placeholder: '' third_party_settings: { } + field_h_date_created: + weight: 30 + settings: { } + third_party_settings: { } + type: datetime_default + region: content field_h_date_published: type: datetime_default - weight: 29 + weight: 32 region: content settings: { } third_party_settings: { } @@ -226,7 +234,7 @@ content: third_party_settings: { } field_h_date_updated: type: datetime_default - weight: 30 + weight: 31 region: content settings: { } third_party_settings: { } diff --git a/config/default/core.entity_form_display.node.h_news_article.default.yml b/config/default/core.entity_form_display.node.h_news_article.default.yml index a6f372a8..c8017ba4 100644 --- a/config/default/core.entity_form_display.node.h_news_article.default.yml +++ b/config/default/core.entity_form_display.node.h_news_article.default.yml @@ -133,8 +133,8 @@ third_party_settings: group_h_system_dates: children: - field_h_date_created - - field_h_date_published - field_h_date_updated + - field_h_date_published parent_name: group_h_dates weight: 30 format_type: details @@ -223,7 +223,7 @@ content: type: datetime_default region: content field_h_date_published: - weight: 106 + weight: 107 settings: { } third_party_settings: { } type: datetime_default @@ -235,7 +235,7 @@ content: type: datetime_default region: content field_h_date_updated: - weight: 107 + weight: 106 settings: { } third_party_settings: { } type: datetime_default diff --git a/config/default/core.entity_view_display.node.h_collection.default.yml b/config/default/core.entity_view_display.node.h_collection.default.yml index cd6764fc..9a6744e6 100644 --- a/config/default/core.entity_view_display.node.h_collection.default.yml +++ b/config/default/core.entity_view_display.node.h_collection.default.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -111,6 +112,15 @@ content: third_party_settings: { } type: number_integer region: content + field_h_date_created: + weight: 121 + label: above + settings: + format_type: medium + timezone_override: '' + third_party_settings: { } + type: datetime_default + region: content field_h_date_published: weight: 113 label: above diff --git a/config/default/core.entity_view_display.node.h_collection.full.yml b/config/default/core.entity_view_display.node.h_collection.full.yml index b1309ad9..3f93acb2 100644 --- a/config/default/core.entity_view_display.node.h_collection.full.yml +++ b/config/default/core.entity_view_display.node.h_collection.full.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -140,6 +141,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_language: true diff --git a/config/default/core.entity_view_display.node.h_collection.h_featured.yml b/config/default/core.entity_view_display.node.h_collection.h_featured.yml index f639cea2..7581048f 100644 --- a/config/default/core.entity_view_display.node.h_collection.h_featured.yml +++ b/config/default/core.entity_view_display.node.h_collection.h_featured.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -140,6 +141,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_language: true diff --git a/config/default/core.entity_view_display.node.h_collection.h_inline.yml b/config/default/core.entity_view_display.node.h_collection.h_inline.yml index 4b83b216..c7f13fee 100644 --- a/config/default/core.entity_view_display.node.h_collection.h_inline.yml +++ b/config/default/core.entity_view_display.node.h_collection.h_inline.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -64,6 +65,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_date_updated: true diff --git a/config/default/core.entity_view_display.node.h_collection.h_search_result.yml b/config/default/core.entity_view_display.node.h_collection.h_search_result.yml index 01920ae5..d68bf6ef 100644 --- a/config/default/core.entity_view_display.node.h_collection.h_search_result.yml +++ b/config/default/core.entity_view_display.node.h_collection.h_search_result.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -87,6 +88,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_reviewed: true field_h_date_updated: true field_h_description: true diff --git a/config/default/core.entity_view_display.node.h_collection.search_index.yml b/config/default/core.entity_view_display.node.h_collection.search_index.yml index eb810f7b..d6583373 100644 --- a/config/default/core.entity_view_display.node.h_collection.search_index.yml +++ b/config/default/core.entity_view_display.node.h_collection.search_index.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -140,6 +141,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_language: true diff --git a/config/default/core.entity_view_display.node.h_collection.teaser.yml b/config/default/core.entity_view_display.node.h_collection.teaser.yml index af3a235e..29ec6a71 100644 --- a/config/default/core.entity_view_display.node.h_collection.teaser.yml +++ b/config/default/core.entity_view_display.node.h_collection.teaser.yml @@ -11,6 +11,7 @@ dependencies: - field.field.node.h_collection.field_h_content_owner - field.field.node.h_collection.field_h_content_pass_sentences - field.field.node.h_collection.field_h_content_readability + - field.field.node.h_collection.field_h_date_created - field.field.node.h_collection.field_h_date_published - field.field.node.h_collection.field_h_date_reviewed - field.field.node.h_collection.field_h_date_updated @@ -48,6 +49,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_date_updated: true diff --git a/config/default/core.entity_view_display.node.h_foi_request.default.yml b/config/default/core.entity_view_display.node.h_foi_request.default.yml index 98db5213..82de7269 100644 --- a/config/default/core.entity_view_display.node.h_foi_request.default.yml +++ b/config/default/core.entity_view_display.node.h_foi_request.default.yml @@ -9,6 +9,7 @@ dependencies: - field.field.node.h_foi_request.field_h_content_owner - field.field.node.h_foi_request.field_h_content_pass_sentences - field.field.node.h_foi_request.field_h_content_readability + - field.field.node.h_foi_request.field_h_date_created - field.field.node.h_foi_request.field_h_date_published - field.field.node.h_foi_request.field_h_date_reviewed - field.field.node.h_foi_request.field_h_date_updated @@ -40,6 +41,11 @@ targetEntityType: node bundle: h_foi_request mode: default content: + content_moderation_control: + weight: -20 + settings: { } + third_party_settings: { } + region: content field_h_audience: weight: 106 label: above @@ -98,6 +104,15 @@ content: third_party_settings: { } type: number_integer region: content + field_h_date_created: + weight: 123 + label: above + settings: + format_type: medium + timezone_override: '' + third_party_settings: { } + type: datetime_default + region: content field_h_date_published: weight: 115 label: above diff --git a/config/default/core.entity_view_display.node.h_foi_request.full.yml b/config/default/core.entity_view_display.node.h_foi_request.full.yml index 094c9e8a..504e2638 100644 --- a/config/default/core.entity_view_display.node.h_foi_request.full.yml +++ b/config/default/core.entity_view_display.node.h_foi_request.full.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.h_foi_request.field_h_content_owner - field.field.node.h_foi_request.field_h_content_pass_sentences - field.field.node.h_foi_request.field_h_content_readability + - field.field.node.h_foi_request.field_h_date_created - field.field.node.h_foi_request.field_h_date_published - field.field.node.h_foi_request.field_h_date_reviewed - field.field.node.h_foi_request.field_h_date_updated @@ -42,6 +43,11 @@ targetEntityType: node bundle: h_foi_request mode: full content: + content_moderation_control: + weight: -20 + settings: { } + third_party_settings: { } + region: content field_h_date_updated: weight: 4 label: above @@ -134,6 +140,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_language: true diff --git a/config/default/core.entity_view_display.node.h_foi_request.h_inline.yml b/config/default/core.entity_view_display.node.h_foi_request.h_inline.yml index b5d7778c..d71cd31d 100644 --- a/config/default/core.entity_view_display.node.h_foi_request.h_inline.yml +++ b/config/default/core.entity_view_display.node.h_foi_request.h_inline.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.h_foi_request.field_h_content_owner - field.field.node.h_foi_request.field_h_content_pass_sentences - field.field.node.h_foi_request.field_h_content_readability + - field.field.node.h_foi_request.field_h_date_created - field.field.node.h_foi_request.field_h_date_published - field.field.node.h_foi_request.field_h_date_reviewed - field.field.node.h_foi_request.field_h_date_updated @@ -38,6 +39,11 @@ targetEntityType: node bundle: h_foi_request mode: h_inline content: + content_moderation_control: + weight: -20 + settings: { } + third_party_settings: { } + region: content field_h_foi_number: type: string weight: 0 @@ -60,6 +66,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_date_updated: true diff --git a/config/default/core.entity_view_display.node.h_foi_request.h_search_result.yml b/config/default/core.entity_view_display.node.h_foi_request.h_search_result.yml index 5dd17778..e74780df 100644 --- a/config/default/core.entity_view_display.node.h_foi_request.h_search_result.yml +++ b/config/default/core.entity_view_display.node.h_foi_request.h_search_result.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.h_foi_request.field_h_content_owner - field.field.node.h_foi_request.field_h_content_pass_sentences - field.field.node.h_foi_request.field_h_content_readability + - field.field.node.h_foi_request.field_h_date_created - field.field.node.h_foi_request.field_h_date_published - field.field.node.h_foi_request.field_h_date_reviewed - field.field.node.h_foi_request.field_h_date_updated @@ -61,6 +62,11 @@ targetEntityType: node bundle: h_foi_request mode: h_search_result content: + content_moderation_control: + weight: -20 + settings: { } + third_party_settings: { } + region: content field_h_summary: weight: 1 label: hidden @@ -75,6 +81,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_date_updated: true diff --git a/config/default/core.entity_view_display.node.h_foi_request.search_index.yml b/config/default/core.entity_view_display.node.h_foi_request.search_index.yml index 0ea9139f..04cc8d53 100644 --- a/config/default/core.entity_view_display.node.h_foi_request.search_index.yml +++ b/config/default/core.entity_view_display.node.h_foi_request.search_index.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.h_foi_request.field_h_content_owner - field.field.node.h_foi_request.field_h_content_pass_sentences - field.field.node.h_foi_request.field_h_content_readability + - field.field.node.h_foi_request.field_h_date_created - field.field.node.h_foi_request.field_h_date_published - field.field.node.h_foi_request.field_h_date_reviewed - field.field.node.h_foi_request.field_h_date_updated @@ -42,6 +43,11 @@ targetEntityType: node bundle: h_foi_request mode: search_index content: + content_moderation_control: + weight: -20 + settings: { } + third_party_settings: { } + region: content field_h_date_updated: weight: 4 label: above @@ -134,6 +140,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_language: true diff --git a/config/default/core.entity_view_display.node.h_foi_request.teaser.yml b/config/default/core.entity_view_display.node.h_foi_request.teaser.yml index 7ca97f06..fac9bf39 100644 --- a/config/default/core.entity_view_display.node.h_foi_request.teaser.yml +++ b/config/default/core.entity_view_display.node.h_foi_request.teaser.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.h_foi_request.field_h_content_owner - field.field.node.h_foi_request.field_h_content_pass_sentences - field.field.node.h_foi_request.field_h_content_readability + - field.field.node.h_foi_request.field_h_date_created - field.field.node.h_foi_request.field_h_date_published - field.field.node.h_foi_request.field_h_date_reviewed - field.field.node.h_foi_request.field_h_date_updated @@ -31,6 +32,11 @@ targetEntityType: node bundle: h_foi_request mode: teaser content: + content_moderation_control: + weight: -20 + settings: { } + third_party_settings: { } + region: content links: weight: 100 settings: { } @@ -43,6 +49,7 @@ hidden: field_h_content_owner: true field_h_content_pass_sentences: true field_h_content_readability: true + field_h_date_created: true field_h_date_published: true field_h_date_reviewed: true field_h_date_updated: true diff --git a/config/default/field.field.node.h_app_or_tool.field_h_date_created.yml b/config/default/field.field.node.h_app_or_tool.field_h_date_created.yml index 6c375955..5bbe92e0 100644 --- a/config/default/field.field.node.h_app_or_tool.field_h_date_created.yml +++ b/config/default/field.field.node.h_app_or_tool.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool.field_h_date_published.yml b/config/default/field.field.node.h_app_or_tool.field_h_date_published.yml index a980b4e4..69d80537 100644 --- a/config/default/field.field.node.h_app_or_tool.field_h_date_published.yml +++ b/config/default/field.field.node.h_app_or_tool.field_h_date_published.yml @@ -15,7 +15,10 @@ label: 'Date published' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool.field_h_date_reviewed.yml b/config/default/field.field.node.h_app_or_tool.field_h_date_reviewed.yml index ed46c0ae..f1c9a17c 100644 --- a/config/default/field.field.node.h_app_or_tool.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_app_or_tool.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: 'Select the date this page was last reviewed.' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool.field_h_date_updated.yml b/config/default/field.field.node.h_app_or_tool.field_h_date_updated.yml index 1b3b705b..64be840c 100644 --- a/config/default/field.field.node.h_app_or_tool.field_h_date_updated.yml +++ b/config/default/field.field.node.h_app_or_tool.field_h_date_updated.yml @@ -15,7 +15,10 @@ label: 'Last updated' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool.field_h_resource_date.yml b/config/default/field.field.node.h_app_or_tool.field_h_resource_date.yml index 9db57932..60993d96 100644 --- a/config/default/field.field.node.h_app_or_tool.field_h_resource_date.yml +++ b/config/default/field.field.node.h_app_or_tool.field_h_resource_date.yml @@ -15,7 +15,10 @@ label: 'Resource published' description: 'Enter the date the app was published or released by the publisher - you can backdate this if you need to. Otherwise leave as the default, which will be the date published to our site. Update this field when a new version is made available.' required: true translatable: false -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_created.yml b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_created.yml index ef5fcee9..4add1c77 100644 --- a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_created.yml +++ b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_published.yml b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_published.yml index 23f74d53..becd61a7 100644 --- a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_published.yml +++ b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_published.yml @@ -15,7 +15,10 @@ label: 'Date published' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_reviewed.yml b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_reviewed.yml index aba259de..60b9c836 100644 --- a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: 'Select the date this page was last reviewed.' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_updated.yml b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_updated.yml index 52d4e548..a30543f0 100644 --- a/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_updated.yml +++ b/config/default/field.field.node.h_app_or_tool_hosted.field_h_date_updated.yml @@ -15,7 +15,10 @@ label: 'Date last updated' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_collection.field_h_date_created.yml b/config/default/field.field.node.h_collection.field_h_date_created.yml new file mode 100644 index 00000000..32df6a64 --- /dev/null +++ b/config/default/field.field.node.h_collection.field_h_date_created.yml @@ -0,0 +1,24 @@ +uuid: 13039851-c08b-4115-ba81-08f877531fd0 +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_h_date_created + - node.type.h_collection + module: + - datetime +id: node.h_collection.field_h_date_created +field_name: field_h_date_created +entity_type: node +bundle: h_collection +label: 'Date created' +description: '' +required: false +translatable: true +default_value: + - + default_date_type: now + default_date: now +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/config/default/field.field.node.h_collection.field_h_date_published.yml b/config/default/field.field.node.h_collection.field_h_date_published.yml index 373850f5..9b64a578 100644 --- a/config/default/field.field.node.h_collection.field_h_date_published.yml +++ b/config/default/field.field.node.h_collection.field_h_date_published.yml @@ -12,7 +12,7 @@ field_name: field_h_date_published entity_type: node bundle: h_collection label: 'Date published' -description: '' +description: 'The date this information was first published on the website.' required: true translatable: true default_value: diff --git a/config/default/field.field.node.h_collection.field_h_date_updated.yml b/config/default/field.field.node.h_collection.field_h_date_updated.yml index 6dd80f57..346a971a 100644 --- a/config/default/field.field.node.h_collection.field_h_date_updated.yml +++ b/config/default/field.field.node.h_collection.field_h_date_updated.yml @@ -12,7 +12,7 @@ field_name: field_h_date_updated entity_type: node bundle: h_collection label: 'Last updated' -description: '' +description: 'The date this information was last updated (modified).' required: true translatable: true default_value: diff --git a/config/default/field.field.node.h_contact.field_h_date_created.yml b/config/default/field.field.node.h_contact.field_h_date_created.yml index f46ad505..606a44fd 100644 --- a/config/default/field.field.node.h_contact.field_h_date_created.yml +++ b/config/default/field.field.node.h_contact.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_contact.field_h_date_reviewed.yml b/config/default/field.field.node.h_contact.field_h_date_reviewed.yml index 6712a423..85c06fba 100644 --- a/config/default/field.field.node.h_contact.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_contact.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: 'Select the date this information was last reviewed.' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_foi_request.field_h_date_created.yml b/config/default/field.field.node.h_foi_request.field_h_date_created.yml new file mode 100644 index 00000000..17e207a4 --- /dev/null +++ b/config/default/field.field.node.h_foi_request.field_h_date_created.yml @@ -0,0 +1,24 @@ +uuid: fecf2071-d62d-4128-bef0-9a7a27f824ed +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_h_date_created + - node.type.h_foi_request + module: + - datetime +id: node.h_foi_request.field_h_date_created +field_name: field_h_date_created +entity_type: node +bundle: h_foi_request +label: 'Date created' +description: '' +required: false +translatable: true +default_value: + - + default_date_type: now + default_date: now +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/config/default/field.field.node.h_foi_request.field_h_date_published.yml b/config/default/field.field.node.h_foi_request.field_h_date_published.yml index 4a0fca33..0dd89f84 100644 --- a/config/default/field.field.node.h_foi_request.field_h_date_published.yml +++ b/config/default/field.field.node.h_foi_request.field_h_date_published.yml @@ -12,10 +12,13 @@ field_name: field_h_date_published entity_type: node bundle: h_foi_request label: 'Date published' -description: '' -required: false +description: 'The date this information was first published on the website.' +required: true translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_foi_request.field_h_date_reviewed.yml b/config/default/field.field.node.h_foi_request.field_h_date_reviewed.yml index 2003fed7..089758d8 100644 --- a/config/default/field.field.node.h_foi_request.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_foi_request.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: '' required: true translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_foi_request.field_h_date_updated.yml b/config/default/field.field.node.h_foi_request.field_h_date_updated.yml index 2ca9f0f0..833f926b 100644 --- a/config/default/field.field.node.h_foi_request.field_h_date_updated.yml +++ b/config/default/field.field.node.h_foi_request.field_h_date_updated.yml @@ -12,10 +12,13 @@ field_name: field_h_date_updated entity_type: node bundle: h_foi_request label: 'Last updated' -description: '' -required: false +description: 'The date this information was last updated (modified).' +required: true translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_foi_request.field_h_resource_date.yml b/config/default/field.field.node.h_foi_request.field_h_resource_date.yml index c8637465..4c49a58a 100644 --- a/config/default/field.field.node.h_foi_request.field_h_resource_date.yml +++ b/config/default/field.field.node.h_foi_request.field_h_resource_date.yml @@ -15,7 +15,10 @@ label: 'FOI release date' description: '' required: true translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_global_notification.field_h_date_created.yml b/config/default/field.field.node.h_global_notification.field_h_date_created.yml index f58e5882..a7165f81 100644 --- a/config/default/field.field.node.h_global_notification.field_h_date_created.yml +++ b/config/default/field.field.node.h_global_notification.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_global_notification.field_h_date_published.yml b/config/default/field.field.node.h_global_notification.field_h_date_published.yml index 17a16741..22aca825 100644 --- a/config/default/field.field.node.h_global_notification.field_h_date_published.yml +++ b/config/default/field.field.node.h_global_notification.field_h_date_published.yml @@ -15,7 +15,10 @@ label: 'Date published' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_global_notification.field_h_date_reviewed.yml b/config/default/field.field.node.h_global_notification.field_h_date_reviewed.yml index bb8c5657..aa58ce0c 100644 --- a/config/default/field.field.node.h_global_notification.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_global_notification.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_global_notification.field_h_date_updated.yml b/config/default/field.field.node.h_global_notification.field_h_date_updated.yml index fa2d1d1f..23d22303 100644 --- a/config/default/field.field.node.h_global_notification.field_h_date_updated.yml +++ b/config/default/field.field.node.h_global_notification.field_h_date_updated.yml @@ -15,7 +15,10 @@ label: 'Last updated' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_landing_page.field_h_date_created.yml b/config/default/field.field.node.h_landing_page.field_h_date_created.yml index ea956e3d..5885be66 100644 --- a/config/default/field.field.node.h_landing_page.field_h_date_created.yml +++ b/config/default/field.field.node.h_landing_page.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_landing_page.field_h_date_published.yml b/config/default/field.field.node.h_landing_page.field_h_date_published.yml index f0e62498..b3df5601 100644 --- a/config/default/field.field.node.h_landing_page.field_h_date_published.yml +++ b/config/default/field.field.node.h_landing_page.field_h_date_published.yml @@ -15,7 +15,10 @@ label: 'Date published' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_landing_page.field_h_date_reviewed.yml b/config/default/field.field.node.h_landing_page.field_h_date_reviewed.yml index 816afe99..8fb6bd4b 100644 --- a/config/default/field.field.node.h_landing_page.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_landing_page.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_landing_page.field_h_date_updated.yml b/config/default/field.field.node.h_landing_page.field_h_date_updated.yml index 12cd55d8..2f682c6b 100644 --- a/config/default/field.field.node.h_landing_page.field_h_date_updated.yml +++ b/config/default/field.field.node.h_landing_page.field_h_date_updated.yml @@ -15,7 +15,10 @@ label: 'Date updated' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_listing.field_h_date_created.yml b/config/default/field.field.node.h_listing.field_h_date_created.yml index 81bc7332..69b5ac3c 100644 --- a/config/default/field.field.node.h_listing.field_h_date_created.yml +++ b/config/default/field.field.node.h_listing.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_listing.field_h_date_published.yml b/config/default/field.field.node.h_listing.field_h_date_published.yml index c8c4d8d9..3e74a03b 100644 --- a/config/default/field.field.node.h_listing.field_h_date_published.yml +++ b/config/default/field.field.node.h_listing.field_h_date_published.yml @@ -15,7 +15,10 @@ label: 'Date published' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_listing.field_h_date_reviewed.yml b/config/default/field.field.node.h_listing.field_h_date_reviewed.yml index 3efd64dc..126c8966 100644 --- a/config/default/field.field.node.h_listing.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_listing.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_listing.field_h_date_updated.yml b/config/default/field.field.node.h_listing.field_h_date_updated.yml index c1f70e2d..28fc1598 100644 --- a/config/default/field.field.node.h_listing.field_h_date_updated.yml +++ b/config/default/field.field.node.h_listing.field_h_date_updated.yml @@ -15,7 +15,10 @@ label: 'Date updated' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_news_article.field_h_date_created.yml b/config/default/field.field.node.h_news_article.field_h_date_created.yml index 08e940e0..b457dc10 100644 --- a/config/default/field.field.node.h_news_article.field_h_date_created.yml +++ b/config/default/field.field.node.h_news_article.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_news_article.field_h_date_reviewed.yml b/config/default/field.field.node.h_news_article.field_h_date_reviewed.yml index 0b1f5465..4148431f 100644 --- a/config/default/field.field.node.h_news_article.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_news_article.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: 'Select the date this information was last reviewed.' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_news_article.field_h_date_updated.yml b/config/default/field.field.node.h_news_article.field_h_date_updated.yml index b75eb2d5..866c4b2d 100644 --- a/config/default/field.field.node.h_news_article.field_h_date_updated.yml +++ b/config/default/field.field.node.h_news_article.field_h_date_updated.yml @@ -12,7 +12,7 @@ field_name: field_h_date_updated entity_type: node bundle: h_news_article label: 'Date last updated' -description: 'The date this information was last updated (medified).' +description: 'The date this information was last updated (modified).' required: true translatable: true default_value: diff --git a/config/default/field.field.node.h_publication.field_h_date_created.yml b/config/default/field.field.node.h_publication.field_h_date_created.yml index ab2aab5b..1cfbbaa1 100644 --- a/config/default/field.field.node.h_publication.field_h_date_created.yml +++ b/config/default/field.field.node.h_publication.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_publication.field_h_date_reviewed.yml b/config/default/field.field.node.h_publication.field_h_date_reviewed.yml index 030023a2..4989cfa3 100644 --- a/config/default/field.field.node.h_publication.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_publication.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: 'Select the date this information was last reviewed.' required: false translatable: false -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_publication.field_h_resource_date.yml b/config/default/field.field.node.h_publication.field_h_resource_date.yml index 50af941c..d60289ba 100644 --- a/config/default/field.field.node.h_publication.field_h_resource_date.yml +++ b/config/default/field.field.node.h_publication.field_h_resource_date.yml @@ -15,7 +15,10 @@ label: 'Resource publication' description: "Enter the date the publication was published or released by the publisher - you can backdate this if you need to. Otherwise leave as the default, which will be the date published to our site.\r\nUpdate this field when a new version is made available." required: true translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_standard_page.field_h_date_created.yml b/config/default/field.field.node.h_standard_page.field_h_date_created.yml index bc035a45..1a0a5cb1 100644 --- a/config/default/field.field.node.h_standard_page.field_h_date_created.yml +++ b/config/default/field.field.node.h_standard_page.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: false -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_standard_page.field_h_date_published.yml b/config/default/field.field.node.h_standard_page.field_h_date_published.yml index ee37a3a9..286d1db8 100644 --- a/config/default/field.field.node.h_standard_page.field_h_date_published.yml +++ b/config/default/field.field.node.h_standard_page.field_h_date_published.yml @@ -15,7 +15,10 @@ label: 'Date published' description: 'The date this information was first published on the website.' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_standard_page.field_h_date_reviewed.yml b/config/default/field.field.node.h_standard_page.field_h_date_reviewed.yml index 044eb04b..55c5b272 100644 --- a/config/default/field.field.node.h_standard_page.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_standard_page.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: 'Select the date this information was last reviewed.' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_standard_page.field_h_date_updated.yml b/config/default/field.field.node.h_standard_page.field_h_date_updated.yml index e9f30835..49e4e708 100644 --- a/config/default/field.field.node.h_standard_page.field_h_date_updated.yml +++ b/config/default/field.field.node.h_standard_page.field_h_date_updated.yml @@ -12,10 +12,13 @@ field_name: field_h_date_updated entity_type: node bundle: h_standard_page label: 'Last updated' -description: '' +description: 'The date this information was last updated (modified).' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_video.field_h_date_created.yml b/config/default/field.field.node.h_video.field_h_date_created.yml index 3f0d67ff..55324c69 100644 --- a/config/default/field.field.node.h_video.field_h_date_created.yml +++ b/config/default/field.field.node.h_video.field_h_date_created.yml @@ -15,7 +15,10 @@ label: 'Date created' description: '' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_video.field_h_date_reviewed.yml b/config/default/field.field.node.h_video.field_h_date_reviewed.yml index fd4e51a5..4b55f726 100644 --- a/config/default/field.field.node.h_video.field_h_date_reviewed.yml +++ b/config/default/field.field.node.h_video.field_h_date_reviewed.yml @@ -15,7 +15,10 @@ label: 'Date last reviewed' description: 'Select the date this information was last reviewed.' required: false translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime diff --git a/config/default/field.field.node.h_video.field_h_resource_date.yml b/config/default/field.field.node.h_video.field_h_resource_date.yml index fe6cd357..f8218b0e 100644 --- a/config/default/field.field.node.h_video.field_h_resource_date.yml +++ b/config/default/field.field.node.h_video.field_h_resource_date.yml @@ -15,7 +15,10 @@ label: 'Resource published' description: 'If available, set as (back-date to) the date the app or tool was officially published/released by its publisher. Else set as the date first published to the website. Update this date when a new version of the app or tool is available. In the case only the year or the year and month of official publication are known, then set the day and/or month as the first day and month respectively. For example, if the official publication date is 2019, then set the date to 1 January 2019. Likewise if the official publication date is March 2019, then set the date as 1 March 2019. ' required: true translatable: true -default_value: { } +default_value: + - + default_date_type: now + default_date: now default_value_callback: '' settings: { } field_type: datetime