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 breadcrumb
Andy Truong edited this page Feb 25, 2014
·
4 revisions
This feature allow us store breadcrumb logic in our code.
# ---
# file: your_module/config/breadcrumb.yml
# ---
paths:
'contact-*':
weight: -100
breadcrumbs:
- ['[site:name]', '[site:url]']
- ['Current page ->[current-page:title]', '[current-page:url]']
- ['Demo config of @crom_andy']
entity:
node: # <-- entity type
page: # <-- bundle
full: # <-- view mode
breadcrumbs: # <-- static breadcrumb
- ['[site:name]', '<front>'] # <-- support tokens
- ['About', 'about-us']
article: # <-- bundle
full: # <-- view mode
controller: # <-- dynamic breadcrumbs, rendered by a controller.
- class_name
- method_name
- ['%entity', '%entity_type', '%bundle', '%view_mode', '%langcode']
gallery: # <-- bundle
full: # <-- view mode
weight: 50
function: my_fn # <-- dynamic breadcrumbs, rendered by a controller.
arguments: [argument_1, argument_2, argument_3] ___ ___________ _ _
/ _ \_ _| ___ \ | | | |
/ /_\ \| | | |_/ / __ _ ___ ___ _ __ ___ ___ __| |_ _| | ___
| _ || | | ___ \/ _` / __|/ _ \ | '_ ` _ \ / _ \ / _` | | | | |/ _ \
| | | || | | |_/ / (_| \__ \ __/_| | | | | | (_) | (_| | |_| | | __/
\_| |_/\_/ \____/ \__,_|___/\___(_)_| |_| |_|\___/ \__,_|\__,_|_|\___|
- 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