官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 郁南县| 信宜市| 兴国县| 佳木斯市| 息烽县| 晋城| 阜南县| 吉首市| 哈巴河县| 临清市| 昆明市| 特克斯县| 秦皇岛市| 凤台县| 尉氏县| 雷波县| 祁连县| 永昌县| 阳朔县| 枝江市| 大丰市| 商都县| 万全县| 富蕴县| 佛山市| 明光市| 房山区| 南岸区| 土默特左旗| 武安市| 青冈县| 武安市| 临湘市| 论坛| 张家界市| 顺义区| 永丰县| 城固县| 长汀县| 吉隆县| 乌审旗|