Skip to content
Snippets Groups Projects
Commit 9549d7a5 authored by Erwin van Brandwijk's avatar Erwin van Brandwijk
Browse files

Issue #3434256: Automated Drupal 11 compatibility fixes for rijksvideo

parent 9dc2ff22
No related branches found
Tags 1.0.0-beta7
1 merge request!5Issue #3434256: Automated Drupal 11 compatibility fixes for rijksvideo
Pipeline #367455 passed with warnings
Showing
with 60 additions and 45 deletions
# Changelog
## 1.0.x - 2024-12-11
### Changes
- Config files optional so DICTU projects can migrate to the drupal.org version
- Template variable videosource to video_source
- Add and edit form updated with info about auto-fill based on XML upload
- Use of dependency injection
- Sanitize filenames
- Move theme library to template instead of preprocess
- Removed duplicate function rijksvideo__normalize_url() also in subscriber
### Fixed
- Drupal 11 proof. Used drupal-check
- Updated deprecated function system_retrieve_file()
......@@ -24,13 +24,13 @@ content:
type: datetime_timestamp
weight: 3
region: content
settings: { }
third_party_settings: { }
settings: {}
third_party_settings: {}
field_rijksvideo_file:
weight: 0
settings:
progress_indicator: throbber
third_party_settings: { }
third_party_settings: {}
type: file_generic
region: content
field_rijksvideo_audio:
......@@ -38,7 +38,7 @@ content:
settings:
size: 60
placeholder: ''
third_party_settings: { }
third_party_settings: {}
type: string_textfield
region: content
field_rijksvideo_sources:
......@@ -46,7 +46,7 @@ content:
settings:
rows: 5
placeholder: ''
third_party_settings: { }
third_party_settings: {}
type: string_textarea
region: content
field_rijksvideo_duration:
......@@ -54,14 +54,14 @@ content:
settings:
size: 60
placeholder: ''
third_party_settings: { }
third_party_settings: {}
type: string_textfield
region: content
field_rijksvideo_caption:
weight: 9
settings:
progress_indicator: throbber
third_party_settings: { }
third_party_settings: {}
type: file_generic
region: content
field_rijksvideo_thumbnail:
......@@ -69,7 +69,7 @@ content:
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
third_party_settings: {}
type: image_image
region: content
field_rijksvideo_transcription:
......@@ -77,7 +77,7 @@ content:
settings:
rows: 5
placeholder: ''
third_party_settings: { }
third_party_settings: {}
type: string_textarea
region: content
langcode:
......@@ -86,7 +86,7 @@ content:
region: content
settings:
include_locked: true
third_party_settings: { }
third_party_settings: {}
name:
type: string_textfield
weight: 5
......@@ -94,14 +94,14 @@ content:
settings:
size: 60
placeholder: ''
third_party_settings: { }
third_party_settings: {}
status:
type: boolean_checkbox
settings:
display_label: true
weight: 12
region: content
third_party_settings: { }
third_party_settings: {}
uid:
type: entity_reference_autocomplete
weight: 2
......@@ -111,5 +111,5 @@ content:
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden: { }
third_party_settings: {}
hidden: {}
......@@ -16,7 +16,7 @@ id: media.rijksvideo.default
targetEntityType: media
bundle: rijksvideo
mode: default
content: { }
content: {}
hidden:
created: true
field_rijksvideo_file: true
......
......@@ -28,7 +28,7 @@ content:
settings:
image_link: ''
image_style: media_library
third_party_settings: { }
third_party_settings: {}
weight: 0
region: content
hidden:
......
......@@ -9,10 +9,10 @@ field_name: field_rijksvideo_audio
entity_type: media
bundle: rijksvideo
label: 'Audio URL'
description: ''
description: 'Auto-filled based on the Rijksvideo XML file'
required: false
translatable: false
default_value: { }
default_value: {}
default_value_callback: ''
settings: { }
settings: {}
field_type: string
......@@ -11,10 +11,10 @@ field_name: field_rijksvideo_caption
entity_type: media
bundle: rijksvideo
label: Caption
description: ''
description: 'Auto-filled based on the Rijksvideo XML file'
required: false
translatable: false
default_value: { }
default_value: {}
default_value_callback: ''
settings:
file_directory: rijksvideo
......@@ -22,5 +22,5 @@ settings:
max_filesize: ''
description_field: false
handler: 'default:file'
handler_settings: { }
handler_settings: {}
field_type: file
......@@ -9,10 +9,10 @@ field_name: field_rijksvideo_duration
entity_type: media
bundle: rijksvideo
label: Duration
description: ''
description: 'Auto-filled based on the Rijksvideo XML file'
required: false
translatable: false
default_value: { }
default_value: {}
default_value_callback: ''
settings: { }
settings: {}
field_type: string
......@@ -14,7 +14,7 @@ label: 'Rijksvideo XML'
description: ''
required: true
translatable: true
default_value: { }
default_value: {}
default_value_callback: ''
settings:
file_directory: rijksvideo
......@@ -22,5 +22,5 @@ settings:
max_filesize: ''
description_field: false
handler: 'default:file'
handler_settings: { }
handler_settings: {}
field_type: file
......@@ -9,10 +9,10 @@ field_name: field_rijksvideo_sources
entity_type: media
bundle: rijksvideo
label: 'Video sources (JSON)'
description: ''
description: 'Auto-filled based on the Rijksvideo XML file'
required: false
translatable: false
default_value: { }
default_value: {}
default_value_callback: ''
settings: { }
settings: {}
field_type: string_long
......@@ -11,10 +11,10 @@ field_name: field_rijksvideo_thumbnail
entity_type: media
bundle: rijksvideo
label: Thumbnail
description: ''
description: 'Auto-filled based on the Rijksvideo XML file'
required: false
translatable: false
default_value: { }
default_value: {}
default_value_callback: ''
settings:
file_directory: rijksvideo
......@@ -33,5 +33,5 @@ settings:
width: null
height: null
handler: 'default:file'
handler_settings: { }
handler_settings: {}
field_type: image
......@@ -9,10 +9,10 @@ field_name: field_rijksvideo_transcription
entity_type: media
bundle: rijksvideo
label: Transcription
description: ''
description: 'Auto-filled based on the Rijksvideo XML file'
required: false
translatable: false
default_value: { }
default_value: {}
default_value_callback: ''
settings: { }
settings: {}
field_type: string_long
......@@ -15,6 +15,6 @@ module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -17,6 +17,6 @@ module: file
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -15,6 +15,6 @@ module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -17,6 +17,6 @@ module: file
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -13,6 +13,6 @@ module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -24,6 +24,6 @@ module: image
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
......@@ -13,6 +13,6 @@ module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
indexes: {}
persist_with_no_fields: false
custom_storage: false
langcode: en
status: true
dependencies: { }
dependencies: {}
id: rijksvideo
label: Rijksvideo
description: ''
description: 'A remotely hosted video from mediatheekrijksoverheid.nl.'
source: file
queue_thumbnail_downloads: false
new_revision: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment