-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipe.yml
61 lines (61 loc) · 1.78 KB
/
recipe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'Saplings - Media'
description: 'Configures media best practices for modern Drupal.'
type: 'Site'
recipes:
- core/recipes/audio_media_type
- core/recipes/document_media_type
- core/recipes/image_media_type
- core/recipes/local_video_media_type
- core/recipes/remote_video_media_type
- imagemagick-configuration
install:
- easy_responsive_images
- focal_point
- lite_youtube_embed
- media_entity_download
- media_file_delete
- media_library_edit
config:
# If the config we're importing already exists, skip it.
strict: false
import:
focal_point: '*'
actions:
# Sets all media image fields to use focal point.
core.entity_form_display.media.image.*:
setComponent:
name: field_media_image
options:
type: image_focal_point
weight: 1
region: content
settings:
progress_indicator: throbber
preview_image_style: media_library
preview_link: true
offsets: '50,50'
# Sets the Remote video embed to use the lite_youtube_embed widget.
core.entity_view_display.media.remote_video.default:
setComponent:
name: field_media_oembed_video
options:
type: lite_youtube_embed
label: hidden
settings:
max_width: 0
max_height: 0
third_party_settings: { }
weight: 0
region: content
# Delete the file when you delete a media entity.
media_file_delete.settings:
simple_config_update:
delete_file_default: true
# Allow all users to download media.
user.role.anonymous:
grantPermission: 'download media'
user.role.authenticated:
grantPermission: 'download media'
# Hide core's Files view.
views.view.files:
disable: {}