Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
|
@ -51,7 +51,10 @@ content:
|
|||
type: entity_reference_autocomplete_tags
|
||||
weight: 3
|
||||
region: content
|
||||
settings: { }
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
|
@ -66,6 +69,13 @@ content:
|
|||
weight: 15
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 120
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
|
|
|
@ -40,6 +40,13 @@ content:
|
|||
weight: 15
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 120
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
|
|
|
@ -55,6 +55,6 @@ content:
|
|||
links:
|
||||
weight: 100
|
||||
region: content
|
||||
hidden:
|
||||
field_image: true
|
||||
field_tags: true
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
|
|
|
@ -12,7 +12,7 @@ entity_type: node
|
|||
bundle: article
|
||||
label: Comments
|
||||
description: ''
|
||||
required: true
|
||||
required: false
|
||||
translatable: true
|
||||
default_value:
|
||||
-
|
||||
|
|
|
@ -19,10 +19,10 @@ default_value_callback: ''
|
|||
settings:
|
||||
file_extensions: 'png gif jpg jpeg'
|
||||
file_directory: 'pictures/[date:custom:Y]-[date:custom:m]'
|
||||
max_filesize: '30 KB'
|
||||
max_filesize: ''
|
||||
alt_field: false
|
||||
title_field: false
|
||||
max_resolution: 85x85
|
||||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
default_image:
|
||||
uuid: null
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.audio.field_media_audio_file
|
||||
- media.type.audio
|
||||
module:
|
||||
- file
|
||||
- path
|
||||
id: media.audio.default
|
||||
targetEntityType: media
|
||||
bundle: audio
|
||||
mode: default
|
||||
content:
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_media_audio_file:
|
||||
weight: 0
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
third_party_settings: { }
|
||||
type: file_generic
|
||||
region: content
|
||||
name:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 100
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,51 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.file.field_media_file
|
||||
- media.type.file
|
||||
module:
|
||||
- file
|
||||
id: media.file.default
|
||||
targetEntityType: media
|
||||
bundle: file
|
||||
mode: default
|
||||
content:
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_media_file:
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
third_party_settings: { }
|
||||
type: file_generic
|
||||
weight: 0
|
||||
region: content
|
||||
name:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 100
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,53 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.image.field_media_image
|
||||
- image.style.thumbnail
|
||||
- media.type.image
|
||||
module:
|
||||
- image
|
||||
id: media.image.default
|
||||
targetEntityType: media
|
||||
bundle: image
|
||||
mode: default
|
||||
content:
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_media_image:
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
preview_image_style: thumbnail
|
||||
third_party_settings: { }
|
||||
type: image_image
|
||||
weight: 0
|
||||
region: content
|
||||
name:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 100
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,52 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.remote_video.field_media_oembed_video
|
||||
- media.type.remote_video
|
||||
module:
|
||||
- media
|
||||
- path
|
||||
id: media.remote_video.default
|
||||
targetEntityType: media
|
||||
bundle: remote_video
|
||||
mode: default
|
||||
content:
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_media_oembed_video:
|
||||
type: oembed_textfield
|
||||
weight: 0
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 100
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
name: true
|
|
@ -0,0 +1,58 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.video.field_media_video_file
|
||||
- media.type.video
|
||||
module:
|
||||
- file
|
||||
- path
|
||||
id: media.video.default
|
||||
targetEntityType: media
|
||||
bundle: video
|
||||
mode: default
|
||||
content:
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_media_video_file:
|
||||
weight: 0
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
third_party_settings: { }
|
||||
type: file_generic
|
||||
region: content
|
||||
name:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 100
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,29 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.audio.field_media_audio_file
|
||||
- media.type.audio
|
||||
module:
|
||||
- file
|
||||
id: media.audio.default
|
||||
targetEntityType: media
|
||||
bundle: audio
|
||||
mode: default
|
||||
content:
|
||||
field_media_audio_file:
|
||||
type: file_audio
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
controls: true
|
||||
autoplay: false
|
||||
loop: false
|
||||
multiple_file_display_type: tags
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
|
@ -0,0 +1,25 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.file.field_media_file
|
||||
- media.type.file
|
||||
module:
|
||||
- file
|
||||
id: media.file.default
|
||||
targetEntityType: media
|
||||
bundle: file
|
||||
mode: default
|
||||
content:
|
||||
field_media_file:
|
||||
label: visually_hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: file_default
|
||||
weight: 1
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
thumbnail: true
|
||||
uid: true
|
||||
name: true
|
|
@ -0,0 +1,28 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.image.field_media_image
|
||||
- image.style.medium
|
||||
- media.type.image
|
||||
module:
|
||||
- image
|
||||
id: media.image.default
|
||||
targetEntityType: media
|
||||
bundle: image
|
||||
mode: default
|
||||
content:
|
||||
field_media_image:
|
||||
label: visually_hidden
|
||||
settings:
|
||||
image_style: ''
|
||||
image_link: file
|
||||
third_party_settings: { }
|
||||
type: image
|
||||
weight: 1
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
thumbnail: true
|
||||
uid: true
|
||||
name: true
|
|
@ -0,0 +1,27 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.remote_video.field_media_oembed_video
|
||||
- media.type.remote_video
|
||||
module:
|
||||
- media
|
||||
id: media.remote_video.default
|
||||
targetEntityType: media
|
||||
bundle: remote_video
|
||||
mode: default
|
||||
content:
|
||||
field_media_oembed_video:
|
||||
type: oembed
|
||||
weight: 0
|
||||
label: hidden
|
||||
settings:
|
||||
max_width: 0
|
||||
max_height: 0
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
|
@ -0,0 +1,32 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.video.field_media_video_file
|
||||
- media.type.video
|
||||
module:
|
||||
- file
|
||||
id: media.video.default
|
||||
targetEntityType: media
|
||||
bundle: video
|
||||
mode: default
|
||||
content:
|
||||
field_media_video_file:
|
||||
type: file_video
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
muted: false
|
||||
width: 640
|
||||
height: 480
|
||||
controls: true
|
||||
autoplay: false
|
||||
loop: false
|
||||
multiple_file_display_type: tags
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
|
@ -0,0 +1,26 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.media.field_media_audio_file
|
||||
- media.type.audio
|
||||
module:
|
||||
- file
|
||||
id: media.audio.field_media_audio_file
|
||||
field_name: field_media_audio_file
|
||||
entity_type: media
|
||||
bundle: audio
|
||||
label: 'Audio file'
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_extensions: 'mp3 wav aac'
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
max_filesize: ''
|
||||
description_field: false
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: file
|
|
@ -0,0 +1,29 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.media.field_media_file
|
||||
- media.type.file
|
||||
enforced:
|
||||
module:
|
||||
- media
|
||||
module:
|
||||
- file
|
||||
id: media.file.field_media_file
|
||||
field_name: field_media_file
|
||||
entity_type: media
|
||||
bundle: file
|
||||
label: File
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'txt rtf doc docx ppt pptx xls xlsx pdf odf odg odp ods odt fodt fods fodp fodg key numbers pages'
|
||||
max_filesize: ''
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
description_field: false
|
||||
field_type: file
|
|
@ -0,0 +1,40 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.media.field_media_image
|
||||
- media.type.image
|
||||
enforced:
|
||||
module:
|
||||
- media
|
||||
module:
|
||||
- image
|
||||
id: media.image.field_media_image
|
||||
field_name: field_media_image
|
||||
entity_type: media
|
||||
bundle: image
|
||||
label: Image
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
alt_field: true
|
||||
alt_field_required: true
|
||||
title_field: false
|
||||
title_field_required: false
|
||||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
default_image:
|
||||
uuid: null
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'png gif jpg jpeg'
|
||||
max_filesize: ''
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: image
|
|
@ -0,0 +1,18 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.media.field_media_oembed_video
|
||||
- media.type.remote_video
|
||||
id: media.remote_video.field_media_oembed_video
|
||||
field_name: field_media_oembed_video
|
||||
entity_type: media
|
||||
bundle: remote_video
|
||||
label: 'Video URL'
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
|
@ -0,0 +1,26 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.media.field_media_video_file
|
||||
- media.type.video
|
||||
module:
|
||||
- file
|
||||
id: media.video.field_media_video_file
|
||||
field_name: field_media_video_file
|
||||
entity_type: media
|
||||
bundle: video
|
||||
label: 'Video file'
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_extensions: mp4
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
max_filesize: ''
|
||||
description_field: false
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: file
|
|
@ -0,0 +1,22 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- file
|
||||
- media
|
||||
id: media.field_media_audio_file
|
||||
field_name: field_media_audio_file
|
||||
entity_type: media
|
||||
type: file
|
||||
settings:
|
||||
target_type: file
|
||||
display_field: false
|
||||
display_default: false
|
||||
uri_scheme: public
|
||||
module: file
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,25 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- media
|
||||
module:
|
||||
- file
|
||||
- media
|
||||
id: media.field_media_file
|
||||
field_name: field_media_file
|
||||
entity_type: media
|
||||
type: file
|
||||
settings:
|
||||
uri_scheme: public
|
||||
target_type: file
|
||||
display_field: false
|
||||
display_default: false
|
||||
module: file
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,32 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- media
|
||||
module:
|
||||
- file
|
||||
- image
|
||||
- media
|
||||
id: media.field_media_image
|
||||
field_name: field_media_image
|
||||
entity_type: media
|
||||
type: image
|
||||
settings:
|
||||
default_image:
|
||||
uuid: null
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
target_type: file
|
||||
display_field: false
|
||||
display_default: false
|
||||
uri_scheme: public
|
||||
module: image
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,20 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- media
|
||||
id: media.field_media_oembed_video
|
||||
field_name: field_media_oembed_video
|
||||
entity_type: media
|
||||
type: string
|
||||
settings:
|
||||
max_length: 255
|
||||
is_ascii: false
|
||||
case_sensitive: false
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,22 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- file
|
||||
- media
|
||||
id: media.field_media_video_file
|
||||
field_name: field_media_video_file
|
||||
entity_type: media
|
||||
type: file
|
||||
settings:
|
||||
target_type: file
|
||||
display_field: false
|
||||
display_default: false
|
||||
uri_scheme: public
|
||||
module: file
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,12 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: audio
|
||||
label: Audio
|
||||
description: 'A locally hosted audio file.'
|
||||
source: audio_file
|
||||
queue_thumbnail_downloads: false
|
||||
new_revision: true
|
||||
source_configuration:
|
||||
source_field: field_media_audio_file
|
||||
field_map: { }
|
|
@ -0,0 +1,12 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: file
|
||||
label: File
|
||||
description: "Use local files for reusable media."
|
||||
source: file
|
||||
queue_thumbnail_downloads: false
|
||||
new_revision: true
|
||||
source_configuration:
|
||||
source_field: field_media_file
|
||||
field_map: { }
|
|
@ -0,0 +1,12 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: image
|
||||
label: Image
|
||||
description: "Use local images for reusable media."
|
||||
source: image
|
||||
queue_thumbnail_downloads: false
|
||||
new_revision: true
|
||||
source_configuration:
|
||||
source_field: field_media_image
|
||||
field_map: { }
|
|
@ -0,0 +1,16 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: remote_video
|
||||
label: 'Remote video'
|
||||
description: 'A remotely hosted video from YouTube or Vimeo.'
|
||||
source: 'oembed:video'
|
||||
queue_thumbnail_downloads: false
|
||||
new_revision: false
|
||||
source_configuration:
|
||||
thumbnails_directory: 'public://oembed_thumbnails'
|
||||
providers:
|
||||
- YouTube
|
||||
- Vimeo
|
||||
source_field: field_media_oembed_video
|
||||
field_map: { }
|
|
@ -0,0 +1,12 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: video
|
||||
label: Video
|
||||
description: 'A locally hosted video file.'
|
||||
source: video_file
|
||||
queue_thumbnail_downloads: false
|
||||
new_revision: true
|
||||
source_configuration:
|
||||
source_field: field_media_video_file
|
||||
field_map: { }
|
|
@ -0,0 +1,59 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- content_moderation
|
||||
id: editorial
|
||||
label: 'Editorial'
|
||||
type: content_moderation
|
||||
type_settings:
|
||||
states:
|
||||
archived:
|
||||
label: Archived
|
||||
weight: 5
|
||||
published: false
|
||||
default_revision: true
|
||||
draft:
|
||||
label: Draft
|
||||
published: false
|
||||
default_revision: false
|
||||
weight: -5
|
||||
published:
|
||||
label: Published
|
||||
published: true
|
||||
default_revision: true
|
||||
weight: 0
|
||||
transitions:
|
||||
archive:
|
||||
label: Archive
|
||||
from:
|
||||
- published
|
||||
to: archived
|
||||
weight: 2
|
||||
archived_draft:
|
||||
label: 'Restore to Draft'
|
||||
from:
|
||||
- archived
|
||||
to: draft
|
||||
weight: 3
|
||||
archived_published:
|
||||
label: Restore
|
||||
from:
|
||||
- archived
|
||||
to: published
|
||||
weight: 4
|
||||
create_new_draft:
|
||||
label: 'Create New Draft'
|
||||
to: draft
|
||||
weight: 0
|
||||
from:
|
||||
- draft
|
||||
- published
|
||||
publish:
|
||||
label: Publish
|
||||
to: published
|
||||
weight: 1
|
||||
from:
|
||||
- draft
|
||||
- published
|
||||
entity_types: { }
|
|
@ -3,7 +3,7 @@ type: profile
|
|||
description: 'Install with commonly used features pre-configured.'
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
dependencies:
|
||||
install:
|
||||
- node
|
||||
- history
|
||||
- block
|
||||
|
@ -26,6 +26,7 @@ dependencies:
|
|||
- path
|
||||
- page_cache
|
||||
- dynamic_page_cache
|
||||
- big_pipe
|
||||
- taxonomy
|
||||
- dblog
|
||||
- search
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Drupal\Tests\standard\Functional;
|
||||
|
||||
use Drupal\Component\Utility\Html;
|
||||
use Drupal\media\Entity\MediaType;
|
||||
use Drupal\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\contact\Entity\ContactForm;
|
||||
use Drupal\Core\Url;
|
||||
|
@ -197,6 +199,63 @@ class StandardTest extends BrowserTestBase {
|
|||
$this->drupalGet($url);
|
||||
$this->drupalGet($url);
|
||||
$this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'User profile page is cached by Dynamic Page Cache.');
|
||||
|
||||
// Make sure the editorial workflow is installed after enabling the
|
||||
// content_moderation module.
|
||||
\Drupal::service('module_installer')->install(['content_moderation']);
|
||||
$role = Role::create([
|
||||
'id' => 'admin_workflows',
|
||||
'label' => 'Admin workflow',
|
||||
]);
|
||||
$role->grantPermission('administer workflows');
|
||||
$role->save();
|
||||
$this->adminUser->addRole($role->id());
|
||||
$this->adminUser->save();
|
||||
$this->rebuildContainer();
|
||||
$this->drupalGet('admin/config/workflow/workflows/manage/editorial');
|
||||
$this->assertText('Draft');
|
||||
$this->assertText('Published');
|
||||
$this->assertText('Archived');
|
||||
$this->assertText('Create New Draft');
|
||||
$this->assertText('Publish');
|
||||
$this->assertText('Archive');
|
||||
$this->assertText('Restore to Draft');
|
||||
$this->assertText('Restore');
|
||||
|
||||
\Drupal::service('module_installer')->install(['media']);
|
||||
$role = Role::create([
|
||||
'id' => 'admin_media',
|
||||
'label' => 'Admin media',
|
||||
]);
|
||||
$role->grantPermission('administer media');
|
||||
$role->save();
|
||||
$this->adminUser->addRole($role->id());
|
||||
$this->adminUser->save();
|
||||
$assert_session = $this->assertSession();
|
||||
$page = $this->getSession()->getPage();
|
||||
/** @var \Drupal\media\Entity\MediaType $media_type */
|
||||
foreach (MediaType::loadMultiple() as $media_type) {
|
||||
$media_type_machine_name = $media_type->id();
|
||||
$this->drupalGet('media/add/' . $media_type_machine_name);
|
||||
// Get the form element, and its HTML representation.
|
||||
$form_selector = '#media-' . Html::cleanCssIdentifier($media_type_machine_name) . '-add-form';
|
||||
$form = $assert_session->elementExists('css', $form_selector);
|
||||
$form_html = $form->getOuterHtml();
|
||||
|
||||
// The name field (if it exists) should come before the source field,
|
||||
// which should itself come before the vertical tabs.
|
||||
$test_source_field = $assert_session->fieldExists($media_type->getSource()->getSourceFieldDefinition($media_type)->getLabel(), $form)->getOuterHtml();
|
||||
$vertical_tabs = $assert_session->elementExists('css', '.form-type-vertical-tabs', $form)->getOuterHtml();
|
||||
$date_field = $assert_session->fieldExists('Date', $form)->getOuterHtml();
|
||||
$published_checkbox = $assert_session->fieldExists('Published', $form)->getOuterHtml();
|
||||
if ($page->findField('Name')) {
|
||||
$name_field = $assert_session->fieldExists('Name', $form)->getOuterHtml();
|
||||
$this->assertTrue(strpos($form_html, $test_source_field) > strpos($form_html, $name_field));
|
||||
}
|
||||
$this->assertTrue(strpos($form_html, $vertical_tabs) > strpos($form_html, $test_source_field));
|
||||
// The "Published" checkbox should be the last element.
|
||||
$this->assertTrue(strpos($form_html, $published_checkbox) > strpos($form_html, $date_field));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\standard\FunctionalJavascript;
|
||||
|
||||
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
|
||||
use Drupal\node\Entity\Node;
|
||||
|
||||
/**
|
||||
* Tests Standard installation profile JavaScript expectations.
|
||||
*
|
||||
* @group standard
|
||||
*/
|
||||
class StandardJavascriptTest extends WebDriverTestBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $profile = 'standard';
|
||||
|
||||
/**
|
||||
* Tests BigPipe accelerates particular Standard installation profile routes.
|
||||
*/
|
||||
public function testBigPipe() {
|
||||
$this->drupalLogin($this->drupalCreateUser([
|
||||
'access content',
|
||||
'post comments',
|
||||
'skip comment approval',
|
||||
]));
|
||||
|
||||
$node = Node::create(['type' => 'article'])
|
||||
->setTitle($this->randomMachineName())
|
||||
->setPromoted(TRUE)
|
||||
->setPublished();
|
||||
$node->save();
|
||||
|
||||
// Front page: one placeholder, for messages.
|
||||
$this->drupalGet('');
|
||||
$this->assertBigPipePlaceholderReplacementCount(1);
|
||||
|
||||
// Node page: 3 placeholders:
|
||||
// 1. messages
|
||||
// 2. local tasks block
|
||||
// 3. comment form
|
||||
$this->drupalGet($node->toUrl());
|
||||
$this->assertBigPipePlaceholderReplacementCount(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts the number of BigPipe placeholders that are replaced on the page.
|
||||
*
|
||||
* @param int $expected_count
|
||||
* The expected number of BigPipe placeholders.
|
||||
*/
|
||||
protected function assertBigPipePlaceholderReplacementCount($expected_count) {
|
||||
$web_assert = $this->assertSession();
|
||||
$web_assert->waitForElement('css', 'script[data-big-pipe-event="stop"]');
|
||||
$page = $this->getSession()->getPage();
|
||||
$this->assertCount($expected_count, $this->getDrupalSettings()['bigPipePlaceholderIds']);
|
||||
$this->assertCount($expected_count, $page->findAll('css', 'script[data-big-pipe-replacement-for-placeholder-with-id]'));
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue