Drupal 8: Applying Patches with Composer
How to apply and manage patches with composer.
First add the library 'cweagans/composer-patches' to your composer.json
Then under installer-paths in your composer.json add "patches". "Patches" is then organized by modules. Here is an example: