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

orphans created an issue. See original summary.

Stizzi’s picture

@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

mattjones86’s picture

It 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.

grasmash’s picture

Status: Active » Fixed

I believe this has been resolved. Yes, a few instances of the old repo name were left in by accident.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.