This allows us to drop various custom things, will need a bit of refactoring, though.

Comments

berdir’s picture

StatusFileSize
new31.12 KB

A first patch.

Not perfect yet, but brings us closer back to how other contrib modules work and also Drupal 8 will.

Additional things to be done here will include relying on the metadata controller for the properties, views controller for the views integration, at least for transactions. Also ui controller for the bundle administration.

berdir’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, use_entity_module.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new46.29 KB

Ok, moved the properties definition to the controller and fixed up the rules tests and dropped the after hook that one is gone for good :) (Aka, has been replaced by the default update/insert hooks).

berdir’s picture

StatusFileSize
new55.5 KB

And now a patch which also adds the views controller. Not perfect yet but a basic view can be built including support for VBO.

Category is for example just the id, but that's not really relevant as that will be replaced by an actual bundle anyway.

Another ~200 lines of code saved :)

Status: Needs review » Needs work

The last submitted patch, now_with_views_controller.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new54.69 KB

Oh well, looks like the defaultUri() cleanup conflicts with the current category filtering, so this will have to wait until that has been replaced by view or otherwise removed :)

berdir’s picture

Status: Needs review » Fixed

Commited this. This isn't really finished and there will be some loose ends like the views integration but this commited allows to continue in different issues and get them back on track like the field one.

Status: Fixed » Closed (fixed)

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