Drupal module development: remove / reinstall / reinstall?

I am developing my own module for Drupal on my local machine.

When I edit my code, the changes are not applied immediately. So, I go to "Module Administration" and uninstall and then reinstall the module. This uninstall-install-develop-repeat loop is slow and tedious.

Is there a better way to do this?

My module makes extensive use of the Drupal framework, so I'm not sure if its development exclusively in PHP is an option.

+5
source share
5 answers

Devel module. Drupal. Devel, . , , , ..

. , hook_menu() , ( Devel " " );

+6

/ , , - , .install.

, / .

, - . Drupal . , . .

, Drush, . ( , / /...)

+3

- >

0

Drush?

drush dre cars_api

https://drushcommands.com/drush-9x/devel/devel:reinstall/

======================== Drush For Drupal =======================

Drush?
: Drush - Drupal,
Laravel-Artisan, Angular CLi ..
Drupal.
http://www.drush.org/
https://packagist.org/packages/drush/drush#dev-master
Drupal → https://www.drupal.org/project/drush

?
: .
1.Step

2.
vscode
composer global require drush/drush:9.x-dev

drush version

https://packagist.org/packages/drush/drush#dev-master

http://docs.drush.org/en/master/
3.
Drush All conads
https://drushcommands.com/drush-9x/
https://www.drupal.org/docs/user_guide/en/prevent-cache-clear.html

Drush?
vscode
Composer require drush/drush

How to see the list of drush commands in the terminal?
Just enter the vscode terminal into the project directory
Drush

and enter in
this way all the commands will be listed with a summary

The removal process for Drush?
Just change the "Require" command to remove
composer global remove drush/drush:9.x-dev

0
source

All Articles