- Drupal 8 Blueprints
- Alex Burrows
- 105字
- 2021-07-03 00:03:23
Drupal core structure
In Drupal, we have several locations where our contrib and custom code go. The following figure illustrates the directory and file structure for Drupal 8.x core:

All custom and contrib items need to go into either modules, profiles, or themes.
The recommended structure inside these directories to add the contrib and custom directories. Consider the following examples:
- Modules:
- /modules/contrib
- /modules/custom
- Profiles:
- /profiles/contrib
- /profiles/custom
- Themes:
- /themes/contrib
- /themes/custom
There are other key directories here that don't need to be touched, but there is also a sites directory, which contains our sites configuration to access the database, files storage, libraries, and services.
推薦閱讀
- Mastering Scientific Computing with R
- Internet of Things with Intel Galileo
- PhpStorm Cookbook
- Mathematica Data Analysis
- Oracle GoldenGate 12c Implementer's Guide
- Java SE實踐教程
- 深入淺出Go語言編程
- C++程序設計教程(第2版)
- Android移動應用項目化教程
- UX Design for Mobile
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- ASP.NET開發寶典
- SQL Server 2012 數據庫應用教程(第3版)
- 征服C指針(第2版)
- HTML5 WebSocket權威指南