Aplicar parches

En el archivo composer.json

 

Se puede poner algo asi:

    "extra": {
       "patches": {
            "drupal/rate": {
                 "Issue rate-3331890": "https://www.drupal.org/files/issues/2023-07-06/3331890-rate-entity-query-access-list-3.0.1-22.patch"
           }
       },

Ejemplo: 

{
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^2.0",
        "cweagans/composer-patches": "^1.7",
        "drupal/admin_toolbar": "^3.4",
        "drupal/aggregator": "^2.0",
        "drupal/allowed_formats": "^2.0",
        "drupal/back_to_top": "^3.0",
        "drupal/backup_migrate": "^5.0",
        "drupal/bootstrap_library": "^2.0",
        "drupal/bootstrap_paragraphs": "^2.0@beta",
        "drupal/business": "10.0.x-dev@dev",
        "drupal/chosen": "^4.0",
        "drupal/colorbox": "^2.0",
        "drupal/conditional_fields": "^4.0@alpha",
        "drupal/content_access": "2.0.x-dev@dev",
        "drupal/content_browser": "^1.1",
        "drupal/core-composer-scaffold": "^10.1",
        "drupal/core-project-message": "^10.1",
        "drupal/core-recommended": "^10.1",
        "drupal/ctools": "^4.0",
        "drupal/d8w3css": "^2.0",
        "drupal/devel": "^5.0",
        "drupal/editor_advanced_link": "^2.2",
        "drupal/embed": "^1.6",
        "drupal/entity_browser": "^2.9",
        "drupal/entity_embed": "^1.4",
        "drupal/entity_usage": "^2.0@beta",
        "drupal/entityqueue": "^1.7",
        "drupal/eva": "^3.0",
        "drupal/field_group": "^3.4",
        "drupal/field_permissions": "1.x-dev@dev",
        "drupal/gin": "^3.0@RC",
        "drupal/gin_toolbar": "^1.0@RC",
        "drupal/honeypot": "^2.1",
        "drupal/image_effects": "^3.4",
        "drupal/inline_entity_form": "^2.0@RC",
        "drupal/jquery_ui_droppable": "^2.0",
        "drupal/mask": "^2.0@alpha",
        "drupal/masquerade": "^2.0@RC",
        "drupal/page_manager": "^4.0@RC",
        "drupal/paragraphs": "^1.15",
        "drupal/pathauto": "^1.11",
        "drupal/rate": "^3.0",
        "drupal/recaptcha": "^3.2",
        "drupal/reference_table_formatter": "^1.2",
        "drupal/replicate": "^1.2",
        "drupal/replicate_ui": "1.x-dev@dev",
        "drupal/scheduler": "^2.0",
        "drupal/search404": "^2.1",
        "drupal/search_api": "^1.29",
        "drupal/tara": "^10.0",
        "drupal/taxonomy_manager": "^2.0",
        "drupal/taxonomy_menu": "^3.6",
        "drupal/taxonomy_unique": "^2.5",
        "drupal/telephone_validation": "^2.4",
        "drupal/video_embed_field": "^2.5",
        "drupal/views_accordion": "^2.0",
        "drupal/views_infinite_scroll": "^2.0",
        "drupal/views_slideshow": "^5.0",
        "drupal/viewsreference": "^2.0@beta",
        "drupal/votingapi": "^3.0@beta",
        "drupal/webform": "^6.2@beta",
        "drupal/weight": "^3.4",
        "drush/drush": "^11"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "phpstan/extension-installer": true,
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "cweagans/composer-patches": true
        },
        "sort-packages": true
    },
    "extra": {
        "patches": {
             "drupal/rate": {
                  "Issue rate-3331890": "https://www.drupal.org/files/issues/2023-07-06/3331890-rate-entity-query-access-list-3.0.1-22.patch"
            }
        },

        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            }
        },
        "installer-paths": {
            "web/core": [
                "type:drupal-core"
            ],
            "web/libraries/{$name}": [
                "type:drupal-library"
            ],
            "web/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "web/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "web/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "web/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "web/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "web/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "drupal-core-project-message": {
            "include-keys": [
                "homepage",
                "support"
            ],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",
                "  * Install the site: https://www.drupal.org/docs/installing-drupal",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        }
    }
}