public function CustomerOrderLocalAction::getRouteParameters in Ubercart 8.4
Returns the route parameters needed to render a link for the local action.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
Return value
array An array of parameter names and values.
Overrides LocalActionDefault::getRouteParameters
File
- uc_order/
src/ Plugin/ Menu/ LocalAction/ CustomerOrderLocalAction.php, line 16
Class
- CustomerOrderLocalAction
- Modifies the 'Create order for this customer' local action.
Namespace
Drupal\uc_order\Plugin\Menu\LocalActionCode
public function getRouteParameters(RouteMatchInterface $route_match) {
return [
'user' => $route_match
->getRawParameter('arg_0'),
];
}