Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm trying out this module on Drupal 8 but it seems there are quite a few namespacing errors in the code (it seems the module was perhaps renamed?).
Anyway I've replaced all instances of \Drupal\license with \Drupal\licensing and renamed install/license.license_type.default.yml to install/licensing.license_type.default.yml. and it seems to work.
Comments
Comment #2
Stizzi CreditAttribution: Stizzi as a volunteer commented@orphans Thanks for leading me on track, had the same problem. I believe it arose from the transit of commerce ecosystem.
Commerce License>Issues - Port to Drupal 8 (Interesting Issue. Worth reading)
You might create a Pull Request on GitHub grasmash/drupal-license
Comment #3
mattjones86It seems that in your Github repo this module is still called license rather than licensing? I'm not sure which one is correct? Perhaps the Github repo is a bit behind the Drupal repo?
Anyway once I got this module working I realised that it didn't really do what I was after. I wanted to be able to grant a license to a whole bundle / content type and not to a specific ID.
I still have the code here but I was working from the Drupal Git repo so I don't think it would do much use on Github until the two repos are in sync.
Comment #4
grasmash CreditAttribution: grasmash as a volunteer commentedI believe this has been resolved. Yes, a few instances of the old repo name were left in by accident.