This repository was archived by the owner on Feb 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
7.x 2.x easy routing
Andy Truong edited this page Dec 25, 2013
·
11 revisions
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: [\Drupal\atest_route\Controller\HelloController, helloAction, {name: 'Andy Truong'}]
atest_route/string_template:
title: String Template
access arguments: ['access content']
template_string: 'Hello {{ name }}'
variables: {name: Andy Truong} ___ ___________ _ _
/ _ \_ _| ___ \ | | | |
/ /_\ \| | | |_/ / __ _ ___ ___ _ __ ___ ___ __| |_ _| | ___
| _ || | | ___ \/ _` / __|/ _ \ | '_ ` _ \ / _ \ / _` | | | | |/ _ \
| | | || | | |_/ / (_| \__ \ __/_| | | | | | (_) | (_| | |_| | | __/
\_| |_/\_/ \____/ \__,_|___/\___(_)_| |_| |_|\___/ \__,_|\__,_|_|\___|
- Caching
- Twig template
- twig Service
- twig_string Service
- Recipes
- Extends
- Easy Block
- Easy Routing
- Easy Breadcrumb
- Entity Template
- Drush Commands:
- Functions:
- Misc
- Status
- Tools for Development enviroment
- /devel/php improved
- /at/sql
- /at/twig
- Kint integration