Yeoman generator for drupal entity, adapted from
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Yeoman generator for generating a Drupal 7 entity boilerplate code.


I wanted to automate away the boring parts in creating a Drupal entity. Current options were:

  1. use ECK
  2. Adopt model and customize it to your own needs.

I prefer the latter approach. I like my entities in code, rather than have it as a feature. ECK prefers it too.

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Install the generator: npm install -g generator-drupalentities
  • mkdir your module folder at sites/*/modules and cd into it
  • Run: yo drupalentities


  1. option to support revisions.
  2. switch bundles on or off for an entity.
  3. add more properties to an entity.


MIT License

Let me know if it works for you, love to hear feedback, bug reports etc. Contact.