Skip to content

cravecode/generator-drupalentities

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Yeoman generator for drupal entity, adapted from https://www.drupal.org/project/model.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.8%
  • PHP 27.2%