Features Module in Drupal 8
Implementing features in Drupal 8
Ritesh Manek
Drupal.org profile
https://www.drupal.org/u/ritzz
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?
Why features is good?
● Reusable Modules
● Version Control
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
Feature !=CMI
Bundle Functionality into re-usable modules
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???
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
Drush Commands
● drush fl: list
● drush fd: difference
● drush fex: export
● drush fim: import
● drush fr: revert
● drush fu: update
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").
Thank you!!!

Features module in drupal 8

  • 1.
    Features Module inDrupal 8 Implementing features in Drupal 8 Ritesh Manek Drupal.org profile https://www.drupal.org/u/ritzz
  • 2.
    Drupal DB consistsof: ● 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?
  • 3.
    Why features isgood? ● Reusable Modules ● Version Control
  • 4.
    Features vs D8CMI 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
  • 5.
    Feature !=CMI Bundle Functionalityinto re-usable modules
  • 6.
    What is wrongwith 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 ofFeatures!!! ● Import, Export detect changes ● Assignments plugins for auto packaging ● Bundles (namespace) ● Drush 7 support ● Modular UI ● Features Module is not needed on every stance
  • 8.
    Drush Commands ● drushfl: list ● drush fd: difference ● drush fex: export ● drush fim: import ● drush fr: revert ● drush fu: update
  • 9.
    How to decidewhat 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").
  • 10.