Install

Works with Drupal: ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 22.37 KB
MD5: 0a5986833eeaa5e52a78408f1831b190
SHA-1: 80ddae6e166ec0dda70ae7a4db84adc8e26638ee
SHA-256: ca7c2359bdb6877ea51931a4104746eb62a2af52579b0671f40ce080b9919bd9
Download zip 47.88 KB
MD5: fa6cfcd1d601ca5dad09dda9d456cb60
SHA-1: 8ee6a3230033a43925ad37d401d16cd8229b3a38
SHA-256: 2ea41e9bb07b41b3871271bf7827374f74a22f1a3a351cc8f474d4aad4311d17

Release notes

Refactor module for Drupal 10/11 compatibility, fix critical bugs, and enforce coding standards

- Update core_version_requirement from ^8 || ^9 to ^10 || ^11
- Replace deprecated functions: file_create_url(), file_save_data(),
file_copy(), entity_delete_multiple(), watchdog_exception()
- Fix fatal error: $this used in static methods in BadgrHelpers
- Fix undefined $logger variable in hook_uninstall
- Fix undefined $status_message and $access_token_data variables
- Fix BadgrConfigForm constructor to call parent properly
- Fix node->id() returning string with strict_types (int -> string|int)
- Fix AddToBackpack controller $currentUser conflict with ControllerBase
- Rename addtobackpack() method to add() to avoid PHP4 constructor detection
- Move node creation from validateForm() to submitForm() in BadgrConfigForm
- Convert BadgrHelpers from broken static class to proper DI service
- Rename all service methods from snake_case to lowerCamelCase
- Move global constants into BadgrService class constants
- Extract ensureAuthenticated() and apiRequest() to reduce duplication
- Add BadgrHelpers as a registered service with proper dependencies
- Add EntityTypeManager and LoggerFactory to BadgrService
- Change password field from textfield to password type
- Use getTriggeringElement() instead of comparing $op string
- Add separate submit handler for Import badges button
- Add config schema (config/schema/badgr_badge.schema.yml)
- Add default config (config/install/badgr_badge.badgrconfig.yml)
- Add declare(strict_types=1) to all PHP files
- Remove duplicate README.txt
- Remove commented-out routes referencing old udl_badgr module
- Update README.md with comprehensive documentation
- Fix all 310 phpcs errors and 55 warnings (Drupal + DrupalPractice)

Created by: dkmishra
Created on: 14 Mar 2026 at 09:43 UTC
Last updated: 14 Mar 2026 at 09:43 UTC

Other releases