Demo example code for drupal-sapi2-prototype
The repo is designed to contain as many modules as necessary to showcase sapi
modules's functionality,
therefore each module should be placed in a separate subdirectory to allow multiple modules to co-exist.
To use the module package, place the repo in your Drupal 8 module directory. Example:
$/> cd modules/custom
$/> git clone [email protected]:james-nesbitt/drupal-sapi2-prototype-demo.git sapi_demo_modules
To be able to enable sapi_demo module dynamic_entity_reference must be enabled.
To generate content devel_generate must be enabled.
To generate "demo_colors" terms :
drush gent demo_colors 5 --kill
To generate "demo_article" nodes :
drush genc 50 --types=demo_article --kill