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 @@
{}

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1,33 @@
{
"linkset": [
{
"anchor": "/aa/system/menu/main/linkset",
"item": [
{
"href": "/aa",
"title": "Home",
"hierarchy": ["0"],
"machine-name": ["main"]
},
{
"href": "/aa/node/1",
"title": "aa|A multi-lingual-node",
"hierarchy": ["1"],
"machine-name": ["main"]
},
{
"href": "/aa/node/2",
"title": "aa|Second multi-lingual-node",
"hierarchy": ["2"],
"machine-name": ["main"]
},
{
"href": "/aa/node/3",
"title": "aa|Third multi-lingual-node",
"hierarchy": ["3"],
"machine-name": ["main"]
}
]
}
]
}

View File

@ -0,0 +1,33 @@
{
"linkset": [
{
"anchor": "/bb/system/menu/main/linkset",
"item": [
{
"href": "/bb",
"title": "Home",
"hierarchy": ["0"],
"machine-name": ["main"]
},
{
"href": "/bb/node/1",
"title": "bb|A multi-lingual-node",
"hierarchy": ["1"],
"machine-name": ["main"]
},
{
"href": "/bb/node/2",
"title": "bb|Second multi-lingual-node",
"hierarchy": ["2"],
"machine-name": ["main"]
},
{
"href": "/bb/node/3",
"title": "bb|Third multi-lingual-node",
"hierarchy": ["3"],
"machine-name": ["main"]
}
]
}
]
}

View File

@ -0,0 +1,33 @@
{
"linkset": [
{
"anchor": "/cc/system/menu/main/linkset",
"item": [
{
"href": "/cc",
"title": "Home",
"hierarchy": ["0"],
"machine-name": ["main"]
},
{
"href": "/cc/node/1",
"title": "cc|A multi-lingual-node",
"hierarchy": ["1"],
"machine-name": ["main"]
},
{
"href": "/cc/node/2",
"title": "aa|Second multi-lingual-node",
"hierarchy": ["2"],
"machine-name": ["main"]
},
{
"href": "/cc/node/3",
"title": "aa|Third multi-lingual-node",
"hierarchy": ["3"],
"machine-name": ["main"]
}
]
}
]
}

View File

@ -0,0 +1,33 @@
{
"linkset": [
{
"anchor": "/dd/system/menu/main/linkset",
"item": [
{
"href": "/dd",
"title": "Home",
"hierarchy": ["0"],
"machine-name": ["main"]
},
{
"href": "/dd/node/1",
"title": "A multi-lingual-node",
"hierarchy": ["1"],
"machine-name": ["main"]
},
{
"href": "/dd/node/2",
"title": "Second multi-lingual-node",
"hierarchy": ["2"],
"machine-name": ["main"]
},
{
"href": "/dd/node/3",
"title": "Third multi-lingual-node",
"hierarchy": ["3"],
"machine-name": ["main"]
}
]
}
]
}

View File

@ -0,0 +1,33 @@
{
"linkset": [
{
"anchor": "/system/menu/main/linkset",
"item": [
{
"href": "/",
"title": "Home",
"hierarchy": ["0"],
"machine-name": ["main"]
},
{
"href": "/node/1",
"title": "A multi-lingual-node",
"hierarchy": ["1"],
"machine-name": ["main"]
},
{
"href": "/node/2",
"title": "Second multi-lingual-node",
"hierarchy": ["2"],
"machine-name": ["main"]
},
{
"href": "/node/3",
"title": "Third multi-lingual-node",
"hierarchy": ["3"],
"machine-name": ["main"]
}
]
}
]
}

View File

@ -0,0 +1,44 @@
{
"linkset": [
{
"anchor": "/system/menu/main/linkset",
"item": [
{
"href": "/",
"title": "Home",
"hierarchy": ["0"],
"machine-name": ["main"]
},
{
"href": "/about",
"title": "About us",
"hierarchy": ["1"],
"machine-name": ["main"]
},
{
"href": "/about/custom-attributes",
"title": "Custom attributes test page",
"hierarchy": ["1", "0"],
"class": [
"foo",
"bar",
"1729",
"1",
"-1",
"3.141592"
],
"data-baz": [
"42"
],
"machine-name": ["main"]
},
{
"href": "/about/name",
"title": "Our name",
"hierarchy": ["1","1"],
"machine-name": ["main"]
}
]
}
]
}

View File

@ -0,0 +1 @@
[{"title":"You can't parse this! Oh no! 🔥🙀🐶

View File

@ -0,0 +1,80 @@
[
{
"title":"Critical Release - SA-2019-02-19",
"link":"https:\/\/www.drupal.org\/sa-2019-02-19",
"project":"drupal",
"type":"core",
"insecure":[
"7.65",
"8.5.14",
"8.6.13",
"8.7.0-alpha2",
"8.7.0-beta1",
"8.7.0-beta2",
"8.6.14",
"8.6.15",
"7.66",
"8.7.0",
"[CORE_VERSION]"
],
"is_psa":"0",
"pubDate":"Tue, 19 Feb 2019 14:11:01 +0000"
},
{
"title":"Critical Release - PSA-Really Old",
"link":"https:\/\/www.drupal.org\/psa",
"project":"drupal",
"type":"core",
"is_psa":"1",
"insecure":[
],
"pubDate":"Tue, 19 Feb 2017 14:11:01 +0000"
},
{
"title":"Generic Module1 Project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module1_project",
"type":"module",
"is_psa":"0",
"insecure":[
"8.x-1.1"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Generic Module1 Test - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module1_test",
"type":"module",
"is_psa":"0",
"insecure":[
"8.x-1.1"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Generic Module2 project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module2_project",
"type":"module",
"is_psa":"1",
"insecure":[
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Missing Project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"missing_project",
"type":"module",
"is_psa":"1",
"insecure":[
"7.x-1.7",
"8.x-1.4"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
}
]

View File

@ -0,0 +1,58 @@
[
{
"title":"Critical Release - SA-2019-02-19",
"link":"https:\/\/www.drupal.org\/sa-2019-02-19",
"project":"drupal",
"type":"core",
"insecure":[
"7.65",
"8.5.14",
"8.6.13",
"8.7.0-alpha2",
"8.7.0-beta1",
"8.7.0-beta2",
"8.6.14",
"8.6.15",
"7.66",
"8.7.0",
"[CORE_VERSION]"
],
"is_psa":"0",
"pubDate":"Tue, 19 Feb 2019 14:11:01 +0000"
},
{
"title":"Generic Module1 Project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module1_project",
"type":"module",
"is_psa":"0",
"insecure":[
"8.x-1.1"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Generic Module1 Test - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module1_test",
"type":"module",
"is_psa":"0",
"insecure":[
"8.x-1.1"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Missing Project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"missing_project",
"type":"module",
"is_psa":"1",
"insecure":[
"7.x-1.7",
"8.x-1.4"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
}
]

View File

@ -0,0 +1,47 @@
[
{
"title":"Critical Release - PSA-Really Old",
"link":"https:\/\/www.drupal.org\/psa",
"project":"drupal",
"type":"core",
"is_psa":"1",
"insecure":[
],
"pubDate":"Tue, 19 Feb 2017 14:11:01 +0000"
},
{
"title":"Generic Module1 Test - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module1_test",
"type":"module",
"is_psa":"0",
"insecure":[
"8.x-1.1"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Generic Module2 project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module2_project",
"type":"module",
"is_psa":"1",
"insecure":[
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Missing Project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"missing_project",
"type":"module",
"is_psa":"1",
"insecure":[
"7.x-1.7",
"8.x-1.4"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
}
]

View File

@ -0,0 +1,92 @@
[
{
"title":"Critical Release - SA-2019-02-19",
"link":"https:\/\/www.drupal.org\/sa-2019-02-19",
"project":"drupal",
"type":"core",
"insecure":[
"7.65",
"8.5.14",
"8.6.13",
"8.7.0-alpha2",
"8.7.0-beta1",
"8.7.0-beta2",
"8.6.14",
"8.6.15",
"7.66",
"8.7.0",
"[CORE_VERSION]"
],
"is_psa":"0",
"pubDate":"Tue, 19 Feb 2019 14:11:01 +0000"
},
{
"title":"Critical Release - PSA-Really Old",
"link":"https:\/\/www.drupal.org\/psa",
"project":"drupal",
"type":"core",
"is_psa":"1",
"insecure":[
],
"pubDate":"Tue, 19 Feb 2017 14:11:01 +0000"
},
{
"title":"Generic Module1 Project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module1_project",
"type":"module",
"is_psa":"0",
"insecure":[
"8.x-1.1",
"8.x-8.7.0"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Generic Module1 Test - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module1_test",
"type":"module",
"is_psa":"0",
"insecure":[
"8.x-1.1",
"8.x-8.7.0"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Generic Module2 project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"generic_module2_project",
"type":"module",
"is_psa":"1",
"insecure":[
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Missing Project - Moderately critical - Access bypass - SA-CONTRIB-2019-02-02",
"link":"https:\/\/www.drupal.org\/SA-CONTRIB-2019-02-02",
"project":"missing_project",
"type":"module",
"is_psa":"1",
"insecure":[
"7.x-1.7",
"8.x-1.4"
],
"pubDate":"Tue, 19 Mar 2019 12:50:00 +0000"
},
{
"title":"Critical Release - PSA because 2020",
"link":"https:\/\/www.drupal.org\/psa",
"project":"drupal",
"type":"core",
"is_psa":"1",
"insecure":[
],
"pubDate":"Tue, 19 Feb 2020 14:11:01 +0000"
}
]

View File

@ -0,0 +1,54 @@
<?php
/**
* @file
* Partial database to mimic the installation of the update_test_schema module.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
// Create the table.
$connection->schema()->createTable('update_test_schema_table', [
'fields' => [
'a' => [
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
],
'b' => [
'type' => 'blob',
'not null' => FALSE,
'size' => 'normal',
],
],
]);
// Set the schema version.
$connection->merge('key_value')
->condition('collection', 'system.schema')
->condition('name', 'update_test_schema')
->fields([
'collection' => 'system.schema',
'name' => 'update_test_schema',
'value' => 'i:8000;',
])
->execute();
// Update core.extension.
$extensions = $connection->select('config')
->fields('config', ['data'])
->condition('collection', '')
->condition('name', 'core.extension')
->execute()
->fetchField();
$extensions = unserialize($extensions);
$extensions['module']['update_test_schema'] = 8000;
$connection->update('config')
->fields([
'data' => serialize($extensions),
])
->condition('collection', '')
->condition('name', 'core.extension')
->execute();

View File

@ -0,0 +1,38 @@
<?php
/**
* @file
* Database to mimic the installation of the update_test_semver_update_n module.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
// Set the schema version.
$connection->merge('key_value')
->condition('collection', 'system.schema')
->condition('name', 'update_test_semver_update_n')
->fields([
'collection' => 'system.schema',
'name' => 'update_test_semver_update_n',
'value' => 'i:8000;',
])
->execute();
// Update core.extension.
$extensions = $connection->select('config')
->fields('config', ['data'])
->condition('collection', '')
->condition('name', 'core.extension')
->execute()
->fetchField();
$extensions = unserialize($extensions);
$extensions['module']['update_test_semver_update_n'] = 8000;
$connection->update('config')
->fields([
'data' => serialize($extensions),
])
->condition('collection', '')
->condition('name', 'core.extension')
->execute();

View File

@ -0,0 +1,26 @@
<?php
/**
* @file
* Empties the description of the user register form mode.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
$data = $connection->select('config')
->condition('name', 'core.entity_form_mode.user.register')
->fields('config', ['data'])
->execute()
->fetchField();
$data = unserialize($data);
// Change description from null to new line to confirm that the update hook calls trim().
// @see system_post_update_convert_empty_string_entity_form_modes_to_null().
$data['description'] = "\n";
$connection->update('config')
->condition('name', 'core.entity_form_mode.user.register')
->fields([
'data' => serialize($data),
])
->execute();