In Drupal 8, Features module allows the capture and management of features. Features is used to export Configuration part of DB, which is consisting of Content types, Views, Fields, Site info.
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
Features module in drupal 8
1. Features Module in Drupal 8
Implementing features in Drupal 8
Ritesh Manek
Drupal.org profile
https://www.drupal.org/u/ritzz
2. Drupal DB consists of:
● Content: Users, Comments, Articles, Pages
● Configuration: Content types, Views, Fields, Site info
Features is used to export Configuration part of DB and it does
by converting configuration into code.
Why features?
4. Features vs D8 CMI
CMI
● Exports config into
code
● Allows version control
● Allows deployment
● NA
Features
● Exports config into
code
● Allows version control
● Allows deployment
● Re-use bundled
functionality
6. What is wrong with CMI!!
Exporting Photo gallery with CMI
● Copy/paste content-type.yml
● Copy/paste my-fields-storage.yml
● Copy/paste view.yml
● Copy/paste image-style.yml
Are there any more dependencies???
How would you know???
7. Key Features of Features!!!
● Import, Export detect changes
● Assignments plugins for auto packaging
● Bundles (namespace)
● Drush 7 support
● Modular UI
● Features Module is not needed on every stance
9. How to decide what to use??
● If you simply need to export and deploy simple site configuration, the
D8 configuration management system should be used instead of
Features.
● You will use Features in D8 to export bundled functionality (like a
"photo gallery feature, A blog or pressroom").