I recently had a Drupal core patch that I needed to use on a site I’m building. This can be done manually using the patch
command, but when managing a Drupal project with Composer, any manual patches could get wiped out on the next run of the composer update
or composer install
commands. In order to make sure patches stick, they need to be added to Composer, like a requirement.