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

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.

主站蜘蛛池模板: 海宁市| 红桥区| 永和县| 雷州市| 安龙县| 常熟市| 神农架林区| 酒泉市| 堆龙德庆县| 昭觉县| 班玛县| 噶尔县| 砚山县| 全州县| 隆昌县| 水城县| 英山县| 虹口区| 兴安盟| 铁力市| 普洱| 郧西县| 察哈| 陆丰市| 惠东县| 黄浦区| 稻城县| 安泽县| 天全县| 青冈县| 天全县| 工布江达县| 霍林郭勒市| 梁河县| 都安| 白城市| 兰考县| 昆明市| 垣曲县| 阳新县| 尤溪县|