CMI in Drupal8
-
Upload
nguyen-si -
Category
Technology
-
view
357 -
download
3
description
Transcript of CMI in Drupal8
![Page 1: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/1.jpg)
CMI (Configuration Management Initiative) in Drupal 8
Nguyen Tien Si
![Page 2: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/2.jpg)
Agenda
• Drupal 7• CMI in Drupal 8• Demo• Question?
![Page 3: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/3.jpg)
Drupal 7
• Have many way to save configuration– Variable table– Own module table
• Deploy from Dev to Pro, includes:– Update_N() hook– Features module– Ctools exportable– …
![Page 4: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/4.jpg)
CMI in Drupal 8
Source: drupalwatchdog.com
![Page 5: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/5.jpg)
CMI in Drupal 8
Exporting the configuration to the file system as YAML fileEx: core/modules/image/config/image.style.large.yml
![Page 6: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/6.jpg)
CMI in Drupal 8
Drupal installation two directories will be created:• active: This stores your currently live configuration.• staging: This stores configuration that is ready to be imported.Ex: sites/default/files/config_0uja8Kt-jH9Pcvu9AGznoQp6FmFs1hVB6APfJMKLcMg
active:
![Page 7: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/7.jpg)
CMI in Drupal 8
API
![Page 8: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/8.jpg)
CMI in Drupal 8
Import/Export to deploy
![Page 9: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/9.jpg)
CMI in Drupal 8
Import/Export to deploy
![Page 10: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/10.jpg)
CMI in Drupal 8
Import/Export to deploy
![Page 11: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/11.jpg)
CMI in Drupal 8
Import/Export to deploy
![Page 12: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/12.jpg)
CMI in Drupal 8
Import/Export do deploy
![Page 13: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/13.jpg)
CMI in Drupal 8
Import/Export to deploy
![Page 14: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/14.jpg)
Demo
Source:https://github.com/mrsinguyen/cmidemo
Download:https://github.com/mrsinguyen/cmidemo/archive/8.x-1.x.zip
![Page 15: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/15.jpg)
References
• http://drupal8cmi.org• https://drupal.org/node/1667894
![Page 16: CMI in Drupal8](https://reader034.fdocuments.in/reader034/viewer/2022052315/554f4b06b4c905423f8b4ce4/html5/thumbnails/16.jpg)
Question?
Any question?