Yeoman generator for drupal entity, adapted from https://www.drupal.org/project/model.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
test
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
README.md
package.json

README.md

Generator-drupalentities

Yeoman generator for generating a Drupal 7 entity boilerplate code.

Motivation

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

Todo

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

License

MIT License

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