Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit e57406a

Browse files
committed
Added documentation for allow_empty
1 parent b975106 commit e57406a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bundles/routing_auto/token_providers.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ Such values can be derived form the object for which the route is being
99
generated or from the environment (e.g. you could use the current locale in
1010
the route).
1111

12+
Global options
13+
--------------
14+
15+
The following options apply to all token providers:
16+
17+
``allow_empty``
18+
Allow the token value to be empty. If the token value is empty then any
19+
trailing slash will be removed, if the token is the last token, then the
20+
leading slash will be removed. Default is ``false``
1221

1322
``content_method``
1423
------------------

0 commit comments

Comments
 (0)