Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

View File

@ -0,0 +1,6 @@
name: 'Base theme and views'
type: 'Testing'
install:
- test_subsubtheme
- node
- views

View File

@ -0,0 +1,13 @@
name: 'Config actions'
type: 'Testing'
install:
- config_test
config:
actions:
config_test.dynamic.recipe:
createIfNotExists:
label: 'Created by recipe'
setProtectedProperty: 'Set by recipe'
config_test.system:
simpleConfigUpdate:
foo: 'not bar'

View File

@ -0,0 +1,9 @@
name: Recipe with direct dependency present
type: 'Testing'
install:
- node
config:
actions:
node.settings:
simpleConfigUpdate:
use_admin_theme: true

View File

@ -0,0 +1,9 @@
name: Recipe with first level indirect dependency
type: 'Testing'
recipes:
- level_2
config:
actions:
node.settings:
simpleConfigUpdate:
use_admin_theme: true

View File

@ -0,0 +1,9 @@
name: Recipe with second level indirect dependency
type: 'Testing'
recipes:
- level_1
config:
actions:
node.settings:
simpleConfigUpdate:
use_admin_theme: true

View File

@ -0,0 +1,4 @@
name: First level sub recipe
type: 'Testing'
recipes:
- level_2

View File

@ -0,0 +1,4 @@
name: Second level sub recipe
type: 'Testing'
install:
- node

View File

@ -0,0 +1,9 @@
name: 'Config from module'
type: 'Testing'
install:
- config_test
config:
import:
config_test:
- config_test.dynamic.dotted.default
- config_test.dynamic.override

View File

@ -0,0 +1,6 @@
id: dotted.default
label: 'Provided by recipe'
weight: 0
protected_property: Default
# Intentionally commented out to verify default status behavior.
# status: 1

View File

@ -0,0 +1,2 @@
foo: bar
404: foo

View File

@ -0,0 +1,11 @@
name: 'Config from module and recipe'
type: 'Testing'
install:
- config_test
- shortcut
- system
config:
import:
config_test: '*'
shortcut:
- shortcut.set.default

View File

@ -0,0 +1,19 @@
name: Config rollback exception
install:
- filter
- media
config:
import:
filter: '*'
media: '*'
actions:
filter.format.plain_text:
setFilterConfig:
instance_id: media_embed
configuration: []
system.image:
# This will cause a validation error, which will trigger a rollback.
# The rollback should fail, since the Media module can't be uninstalled
# now that the plain_text format is using one of its filters.
simpleConfigUpdate:
non_existent_key: whatever!

View File

@ -0,0 +1,10 @@
name: 'Config wildcard'
type: 'Testing'
install:
- config_test
- shortcut
- system
config:
import:
config_test: '*'
shortcut: ~

View File

@ -0,0 +1,45 @@
name: Input Test
recipes:
# Depend on another recipe in order to prove that we can collect input
# from recipes that depend on other recipes.
- no_extensions
install:
- node
input:
owner:
data_type: string
description: 'The name of the site owner.'
constraints:
Regex:
pattern: '/hack/i'
match: false
message: "I don't think you should be owning sites."
form:
'#type': textfield
'#title': "Site owner's name"
default:
source: value
value: 'Dries Buytaert'
break_stuff:
data_type: boolean
description: 'Should mischief be allowed on this site? Not recommended.'
form:
'#type': checkbox
'#title': 'Allow mischief'
default:
source: value
value: false
node_type:
data_type: string
description: 'The ID of a node type to create'
default:
source: value
value: 'test'
config:
actions:
node.type.${node_type}:
createIfNotExists:
name: Test Content Type
system.site:
simpleConfigUpdate:
name: "${owner}'s Turf"

View File

@ -0,0 +1 @@
use_admin_theme: false

View File

@ -0,0 +1,9 @@
langcode: en
status: true
name: 'Test content type'
type: test
description: 'Test content type from a recipe'
help: null
new_revision: true
preview_mode: 1
display_submitted: true

View File

@ -0,0 +1,5 @@
name: 'Install node with config'
type: 'Content type'
install:
- node
- drupal:text

View File

@ -0,0 +1,5 @@
name: 'Install two modules'
type: 'Content type'
install:
- node
- text

View File

@ -0,0 +1,14 @@
langcode: en
status: true
dependencies:
config:
# Depend on the valid date format in order to ensure it is imported first,
# which means we can ensure it was rolled back when this date format raises
# a validation error.
- core.date_format.valid
id: invalid
# Null isn't a valid value for the label, so this should raise a validation
# error.
label: null
locked: false
pattern: 'j F Y'

View File

@ -0,0 +1,7 @@
langcode: en
status: true
dependencies: { }
id: valid
label: 'Valid date format'
locked: false
pattern: 'j F Y'

View File

@ -0,0 +1,2 @@
name: 'Invalid config'
type: 'Testing'

View File

@ -0,0 +1,3 @@
name: 'No extensions'
description: 'A recipe description'
type: 'Testing'

View File

@ -0,0 +1,4 @@
name: 'Recipe depending on an invalid recipe'
type: 'Testing'
recipes:
- invalid_config

View File

@ -0,0 +1,5 @@
name: 'Recipe depending on first installing modules, then a recipe with invalid config'
type: 'Testing'
recipes:
- install_two_modules
- invalid_config

View File

@ -0,0 +1,9 @@
langcode: en
status: true
name: 'Another test content type'
type: another_test
description: 'Another test content type from a recipe'
help: null
new_revision: true
preview_mode: 1
display_submitted: true

View File

@ -0,0 +1,6 @@
name: 'Recipe include'
type: 'Testing'
recipes:
- install_node_with_config
install:
- dblog

View File

@ -0,0 +1,5 @@
name: 'Theme with module dependencies'
type: 'Testing'
install:
- test_theme_depending_on_modules
- test_module_required_by_theme

View File

@ -0,0 +1,12 @@
langcode: en
status: true
name: 'Test content type'
type: test
description: 'Test content type from a recipe'
help: null
new_revision: true
preview_mode: 1
display_submitted: true
dependencies:
config:
- core.date_format.non_existent

View File

@ -0,0 +1,2 @@
name: 'Unmet config dependencies'
type: 'Testing'