Commit cf096e69 authored by neclimdul's avatar neclimdul

Stash the Drupal menu item

This will bubble down to the request and since that will be passed around, make
a lot of integration with Symfony and transitioning easier.
parent 86554c8e
......@@ -49,6 +49,8 @@ public function match($pathinfo) {
$routes->add(hash('sha256', $router_item['path']), $this->convertDrupalItem($router_item));
if ($ret = $this->matchCollection($pathinfo, $routes)) {
// Stash the router item in the attributes why we're transitioning.
$ret['drupal_menu_item'] = $router_item;
return $ret;
}
}
......
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