Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a custom module using the Drupal Console #58

Open
AliHassan7 opened this issue May 16, 2017 · 3 comments
Open

Create a custom module using the Drupal Console #58

AliHassan7 opened this issue May 16, 2017 · 3 comments

Comments

@AliHassan7
Copy link
Contributor

AliHassan7 commented May 16, 2017

  • Before working on this task, ensure that you have successfully downloaded Drupal Console by completing this short task: Install Drupal Console
  • To begin working on this task, create a branch based off of the currently checked out branch using the following convention: proj-me-initials-58
  • We will create a custom module using the Drupal Console. This custom module will be used to contain our custom blocks which we will be creating in other tasks!
  • cd to academyvm and then vagrant up
  • cd to /var/www/dev-1/proj-me and run the following command to create a custom module using Drupal Console: vendor/drupal/console/bin/drupal generate:module.
  • Drupal Console will not ask you many questions regarding your custom module:
    • Enter the new module name: Proj-me Core
    • Enter the module machine name: proj_me_core
    • Enter the module Path: /modules/custom
    • Enter module description: Custom module containing custom blocks.
    • Enter package name: (Just hit Enter on your keyboard and it'll go to the next question)
    • Enter Drupal Core version: (Just hit Enter on your keyboard and it'll go to the next question)
    • Do you want to generate a .module file: yes
    • Define module as feature: no
    • Do you want to add a composer.json file to your module: no
    • Would you like to add module dependencies: no
    • Do you want to generate a unit test class: no
    • Do you want to generate a themeable template: no
    • Do you confirm generation: yes.
    • After the last yes, Drupal Console will list 2 files that were generated. If you did this correctly, you will see that proj_me_core.info.yml and proj_me_core.module files were generated.
    • Navigate to the extend section of your website and enable your new module!
  • Upon completion of the task, please commit and push all your work to your fork of the proj-me repository. You do not need to export your configuration for this task. Remember to create a pull request.
  • Leave a comment on this issue when you:
    • Start working on this task
    • Have a question about this task
    • Complete this task (please comment on this task with a link to your pull request).
@ByronGary
Copy link

finished task #73

@msheikh12
Copy link
Contributor

Started working on it

@msheikh12
Copy link
Contributor

Completed #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants