@Route
Component ID
2126885
Component name
@Route
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
560
Component created
Component changed
Component body
Note: The feature is merged to at_base
Faster way to define menu item in Drupal 7:
# %atest_route/config/route.yml
routes:
atest_route/drupal:
title: Hello Drupal
page callback: atest_route_page_callback
page arguments: ['Andy Truong']
access arguments: ['access content']
atest_route/controller:
title: Hello
access arguments: ['access content']
controller: [Drupalatest_routeControllerHelloController, helloAction, {name: 'Andy Truong'}]
atest_route/string_template:
title: String Template
access arguments: ['access content']
page callback: at_theming_render_string_template
page arguments: ['Hello {{ name }}', {name: Andy Truong}]Depends on:
- https://drupal.org/project/at_base
- https://drupal.org/project/at_autoload
- https://drupal.org/project/at_theming (good to have)
