If you're a fan of the sleek and modern Adminimal Theme for Drupal administration, you may have noticed it doesn't have a stable release for Drupal 11 yet. However, there is an unstable development branch that works with Drupal 11. Here's how you can upgrade to it.
Step 1: Update composer.json repositories
In your Drupal project's composer.json file, add the following to the "repositories" section:
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8",
"exclude": [
"drupal/adminimal_theme"
]
},
"drupal/adminimal_theme": {
"type": "vcs",
"url": "https://git.drupalcode.org/issue/adminimal_theme-3460890.git"
}
}
This tells Composer to fetch adminimal_theme from the specific development branch instead of the main Drupal packages repository.
Step 2: Require the dev versions
Next, in the "require" section of composer.json, specify the following versions:
"drupal/adminimal_admin_toolbar": "2.0.x-dev@dev",
"drupal/adminimal_theme": "dev-3460890-d11_ready",
This pulls in the development version of adminimal_theme that is compatible with Drupal 11, as well as the corresponding dev release of the adminimal_admin_toolbar companion module.
Step 3: Update dependencies
Now from your terminal, run:
$ composer update drupal/adminimal_theme drupal/adminimal_admin_toolbar
This will fetch the specified development versions of the theme and toolbar.
After the update completes, you should have a working adminimal_theme setup on Drupal 11! Keep in mind this is unstable, development code, so test thoroughly and don't use on production sites.