Commit b56718de authored by jhodgdon's avatar jhodgdon

Issue #2359035 by metzlerd: Add info to Routing topic about magic placeholder...

Issue #2359035 by metzlerd: Add info to Routing topic about magic placeholder transformation to parameters in method
parent b2e8f086
......@@ -122,6 +122,11 @@
* As a note, if your module registers multiple simple routes, it is usual
* (and usually easiest) to put all of their methods on one controller class.
*
* If the route has placeholders (see @ref sec_placeholders above) the
* placeholders will be passed to the method (using reflection) by name.
* For example, the placeholder '{myvar}' in a route will become the $myvar
* parameter to the method.
*
* Most controllers will need to display some information stored in the Drupal
* database, which will involve using one or more Drupal services (see the
* @link container Services and container topic @endlink). In order to properly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment