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

  • Drupal 8 Module Development
  • Daniel Sipos
  • 134字
  • 2021-07-02 12:22:34

Menus

Any site needs some sort of navigation, right? Drupal not only maintains content, but also provides details about how the site itself is organized. That is, it keeps a structure of how content is related.

The principal way that it does this is through the menu subsystem. The latter provides APIs to generate, retrieve, and modify elements that describe the site structure. Put in common parlance, it handles the system's navigational menus.

Menus are hierarchical, that is, they have a tree-like structure. A menu item can have multiple children, each of which may have their own children, and so on. In this way, we can use the menu system to structure our site into sections and subsections.

In this book, we will see how we can work programmatically with menus and menu links.

主站蜘蛛池模板: 大冶市| 乌拉特后旗| 壤塘县| 双柏县| 瑞安市| 平江县| 西乡县| 车致| 金坛市| 陆河县| 青铜峡市| 五指山市| 喀什市| 碌曲县| 三都| 三原县| 东乡族自治县| 黑龙江省| 兴国县| 桃江县| 喜德县| 渭源县| 德格县| 凤凰县| 大埔县| 汨罗市| 苏州市| 盖州市| 龙江县| 东乌| 阜宁县| 满洲里市| 互助| 崇阳县| 介休市| 太白县| 开化县| 共和县| 长乐市| 九寨沟县| 河津市|