drupal模块开发

关于drupal的路由机制,不用hook_menu()

日期:2016-06-20 阅读:2310

dmandwp系统 - wordpress系统和DM系统区块建站>>

关于drupal的路由机制,不用hook_menu()

https://www.drupal.org/node/1800686

All functionality of hook_menu() is replaced by new systems for routing, menu links, local tasks, actions and contextual links

在drupal7里,路由是 用hook_menu来实现。以这些组成:  

menu links(菜单), local tasks(TAB切换), actions(动作) and contextual links(上下文)

但在是drupal8里,由不同的yml文件来实现。

 

--------------

8.2.x core/lib/Drupal/Core/Routing/routing.api.php routing

https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Routing%21routing.api.php/group/routing/8.2.x

更多 请访问 https://www.drupal.org/docs/8/api/routing-system/routing-system-overview

 

 

 

 

<<点击返回