- 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.
推薦閱讀
- Advanced Quantitative Finance with C++
- C++面向?qū)ο蟪绦蛟O(shè)計(第三版)
- 我的第一本算法書
- AngularJS深度剖析與最佳實踐
- Instant Typeahead.js
- Learn Scala Programming
- 實戰(zhàn)低代碼
- MariaDB High Performance
- Spring Boot進階:原理、實戰(zhàn)與面試題分析
- Java編程的邏輯
- C#開發(fā)案例精粹
- Test-Driven JavaScript Development
- QlikView Unlocked
- Android移動應(yīng)用開發(fā)項目教程
- 精通Spring:Java Web開發(fā)與Spring Boot高級功能