Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)
Appliquer un patch avec Composer dans drupal
Aller à la navigation
Aller à la recherche
Dans le fichier composer.json, ajouter la section "patches" dans la section "extra", généralement en fin de fichier.
Puis lancer : composer update
Ici, le "patch" corrige un problème de conflit entre le module Pleade et une version du thème "barrio".
Le PATH du patch est relatif au fichier composer.json
,
"extra": {
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
},
"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"],
"web/libraries/ckeditor/plugins/{$name}": ["vendor:ckeditor-plugin"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
},
"drupal-scaffold": {
"initial": {
".editorconfig": "../.editorconfig",
".gitattributes": "../.gitattributes"
}
},
"patches": {
"drupal/bootstrap_barrio": {
"Notice: Error : Call to a member function bundle() on string dans bootstrap_barrio_theme_suggestions_page_alter": "web/patches/barrio.patch"
}
}
}