- 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.
推薦閱讀
- INSTANT Mock Testing with PowerMock
- Mastering Spring MVC 4
- 軟件測試項目實戰之性能測試篇
- Neo4j Essentials
- 深入理解Elasticsearch(原書第3版)
- Julia高性能科學計算(第2版)
- ASP.NET Core 2 Fundamentals
- Learning jQuery(Fourth Edition)
- 打開Go語言之門:入門、實戰與進階
- 詳解MATLAB圖形繪制技術
- INSTANT Silverlight 5 Animation
- 編寫高質量代碼:改善Objective-C程序的61個建議
- Clojure High Performance Programming(Second Edition)
- Laravel Design Patterns and Best Practices
- 軟硬件綜合系統軟件需求建模及可靠性綜合試驗、分析、評價技術