Patch Core
"extra": {
"enable-patching": true,
"patches": {
"drupal/core": {
"<patch1 information>": "<patch1 file path>",
"<patch2 information>": "<patch2 file path>"
}
}
}
Patch Contrib
"patches": {
"drupal/module_name": {
"<patch information>": "<patch file path>"
}
}
Run "composer Install"
Run "composer update --lock"
Reference: https://groups.drupal.org/node/518975