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

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.

主站蜘蛛池模板: 旬邑县| 墨竹工卡县| 延安市| 长乐市| 伊金霍洛旗| 封丘县| 义乌市| 桓仁| 赤壁市| 枣强县| 汝城县| 嫩江县| 兴海县| 江都市| 西昌市| 鄂伦春自治旗| 玉田县| 自治县| 永定县| 崇左市| 久治县| 徐州市| 堆龙德庆县| 黄梅县| 连州市| 台山市| 阿坝县| 广南县| 乌拉特中旗| 宁波市| 双辽市| 辽宁省| 濉溪县| 苏州市| 定襄县| 介休市| 皮山县| 金阳县| 新密市| 邵东县| 石城县|