- 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.
推薦閱讀
- C語言程序設(shè)計(jì)案例教程
- Java程序設(shè)計(jì)(慕課版)
- 小程序?qū)崙?zhàn)視頻課:微信小程序開發(fā)全案精講
- Raspberry Pi Networking Cookbook(Second Edition)
- Visual C++實(shí)例精通
- VMware vSphere 6.7虛擬化架構(gòu)實(shí)戰(zhàn)指南
- Java EE 7 Development with NetBeans 8
- Python忍者秘籍
- Learning OpenStack Networking(Neutron)(Second Edition)
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- PHP編程基礎(chǔ)與實(shí)例教程
- Java Web開發(fā)詳解
- Azure Serverless Computing Cookbook
- MINECRAFT編程:使用Python語言玩轉(zhuǎn)我的世界
- HTML+CSS+JavaScript編程入門指南(全2冊(cè))