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.
your current project/module name is 'model'. Is it too late to rename it to e.g. entitymodel (analoguous as entitycache) ? Since Entity is the domain your modelling.
The current name is too generic, and it is more dev-friendly to start your name with entity, and have all Entity-related directories together.
Comments
Comment #1
keyiyek CreditAttribution: keyiyek commentedI would add another matter on this point.
Since the module is intended to be as an example naming the module like one of the entities is just confusing, there is no way, for a beginner, to tell when "model" is a reference to the entity and when to the module.
Quite all the examples have this very problem. personally I'm trying to build up a module that provides 3 different kind of entities and I always find myself hindered by this shortcome.
Comment #2
johnvO, I was under the impression that 'model' was not thename of the entity, but the activity, as in 'modelling entities'.
Comment #3
xandeadx CreditAttribution: xandeadx commented+1 for request. may be "entity constructor"
Comment #4
pjcdawkins CreditAttribution: pjcdawkins commented+1, I've also found #1 muddling.
Comment #5
Alan D. CreditAttribution: Alan D. commented+1 for clear naming of entities, et al.
However, this is either a task or a feature request!