You can add new features to websites by adding modules to Drupal website
There are two ways to add modules into websites
- Adding a module using composer
- Adding a module using drush
Note: After adding module to website, you needed to enable the module using drupal interface or using drush commands
Adding a module using composer
*) Open the command prompt or terminal and located into Drupal installed root path
*) run the following commands
$ compser require drupal/[module_name]
Example:
$ composer require 'drupal/paragraphs:^1.14'
Adding a module using drush
*) Open the command prompt or terminal and located into Drupal installed root path
*) run the following command
drush dl [module_name]
Example:
drush dl paragraphs
*) run the following commands to enable the module
drush en [module_name]
Example:
drush en paragraphs
Comments