- πΊπΈUnited States uberhacker
Attached is a patch for Drupal 9/10 compatibility. To install @bmunson's Drupal 8 port and apply this patch, do the following:
Edit composer.json and add...
"repositories": [ { "type": "package", "package": { "name": "bmunslow/drupal8-badbehavior", "version": "dev-master", "type": "drupal-module", "extra": { "installer-name": "badbehavior" }, "source": { "url": "https://github.com/bmunslow/drupal8-badbehavior.git", "reference": "master", "type": "git" } } } ], ... "extra": { "patches": { "bmunslow/drupal8-badbehavior": [ "patches/badbehavior-d10.patch" ] } },
Do not replace the entire repositories and extra sections but add if there are already existing repositories and/or patches.
Then run:composer install
Ideally, these changes should eventually go into a 9.x branch in this project but this is a workaround until the maintainers have the time and willingness to update.
- πΊπΈUnited States uberhacker
I noticed there was an error when attempting to access the logs. The attached patch fixes `Symfony\Component\HttpKernel\Exception\ControllerDoesNotReturnResponseException: The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned a string ("Bad Behavior is not installed correctly. See the README.txt for installation details.")`. Please disregard the earlier patch.