I've a view, content type, field collection, flexslider to satisfy a single user case. May I know how to export all these three as a single module.
2 Answers
You could use some Drupal Console export commands for this:
You could use the --module
option to specificy which module to export.
It's easier to use the Features module though. From the project page:
A feature is a collection of Drupal entities which taken together satisfy a certain use-case.
Features provides a UI and API for taking different site building components from modules with exportables and bundling them together in a single feature module. A feature module is like any other Drupal module except that it contains additional information in its info file so that configuration can be checked, updated, or reverted programmatically.
Examples of features might be:
- A blog
- A pressroom
- An image gallery
Install and configure Features module.
Features provides a UI and API for taking different site building components from modules with exportables and bundling them together in a single feature module.
To export using terminal use Drush.
Drush commands for features : https://drushcommands.com/drush-7x/features/features-add/
-
-
Drupal Console != Drush. But I agree, using features + drush is easier than using DC. Commented Jan 23, 2017 at 7:05
-
@WimMostrey I guess FazeelaAbuZohra asking about terminal. Commented Jan 23, 2017 at 7:09