Drush, the brilliant command-line tool for Drupal, is capable of giving you its output in several ways. Its global --format parameter can be set to a type that you can use in useful ways. Most recently, I found this incredibly useful when I had made some configuration changes through Drupal's admin pages, and needed to then...
I've been tasked to upgrade another inherited #drupal 9 site to 10, apply a some major updates to the existing theme, and stage it on #pantheon
As-is, none of the contrib modules had been defined in its #composer#json config, and it has quite a few complex added features and content types that may no longer be required. Let's see how this goes! 😎
the initial strategy is uninstall and remove any #drupal modules that aren't required. Use #drush to update any that are required (since they aren't in composer.json), see if I can get it to 9.5 and then 10, then worry about wrangling and composerizing the existing contrib modules that are wandering around
this process wound up working to get two other sites from #drupal 9.3 to 9.5 to 10.2.1.
I had to fix some issues with #Twig 'spaceless' being deprecated in the custom themes, and the profile_switcher #drush module saved me from remnants of Lightning 2.x beta something, though some time ago a lot of effort was put into disabling and removing all lightning workflow related features. 🦤 I think I like drupal again!
Drupal at Your Fingertips is a free living Modern Drupal reference book created to help developers quickly find code they need. It is a community effort including other developers' input. Please share it with your network.
I have been doing a lot of #Drupal core updates from 9 to 10. Several core modules that used to be enabled in the standard profile have been dropped. I wrote a collection of very low-level #drush commands to help with cleaning up the leftover cruft that stands in the way of clean automated updates: https://packagist.org/packages/ossobuffo/drush-admin-utils
What to do when you would like to import a specific configurations like only the blocks config in my situation? #Drupal
I moved all the blocks.blocks.* yaml files into a subdirectory of the parent config directory.
Than you can use drush cim --partial --source=/var/www/config/sync/blocks to import only those configs. 💡Only an absolute path worked in my case.
Format Drush output for easy wins! (www.computerminds.co.uk)
Drush, the brilliant command-line tool for Drupal, is capable of giving you its output in several ways. Its global --format parameter can be set to a type that you can use in useful ways. Most recently, I found this incredibly useful when I had made some configuration changes through Drupal's admin pages, and needed to then...
Custom Drush Commands: Site-wide Drush Commands (jigarius.com)
Does your Drupal site have custom scripts? Many of them can probably be written as beautiful custom Drush commands.