SHARE
TWEET

Untitled

a guest Sep 20th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // WIP - Work in Progress -
  2.  
  3. // Generating a new Drupal module.
  4. drupal generate:module
  5. drupal gm
  6. // Example
  7. drupal generate:module
  8. --module="my_custom_module_name" \
  9. --machine-name="my_custom_module_machine_name"  \
  10. --module-path="web/modules/custom" \
  11. --description="My Custom Module"  --core="8.x"  \
  12. --package="My Custom Package" \
  13. --module-file
  14.  
  15. // Generating a new Drupal Form.
  16. drupal generate:form
  17. drupal gf
  18. // Example
  19. drupal generate:form
  20. --module="my_custom_module_name"  \
  21. --class="ClassForm"  \
  22. --form-id="default_form"  \
  23. --config-file  \
  24. --path="/my_custom_module_name/form/default"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top