penance316 / drupal-playground
开发用于调试的drupal模块。
dev-master
2023-11-28 11:33 UTC
Requires
- drupal/core: ^8.0.0 || ^9 || ^10
This package is auto-updated.
Last update: 2024-08-28 13:14:30 UTC
README
开发用于调试的drupal模块。
我们能在这里做什么
- 在每次页面加载时运行代码。
- 在路由 /playground/test 下的空页面。
- 能够以任何视图模式查看任何实体。
- 获取模块依赖。
在每次请求时运行代码
检出 playground.module 文件。
获取模块依赖
要获取模块依赖 /playground/dependency/{module_name}
查看实体
要查看任何实体
/playground/entity/{entity_type}/{entity}/
可选参数 view_mode 可以指定
/playground/entity/{entity_type}/{entity}/{view_mode}