CustomerOrderLocalAction.php in Ubercart 8.4
Namespace
Drupal\uc_order\Plugin\Menu\LocalActionFile
uc_order/src/Plugin/Menu/LocalAction/CustomerOrderLocalAction.phpView source
<?php
namespace Drupal\uc_order\Plugin\Menu\LocalAction;
use Drupal\Core\Menu\LocalActionDefault;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Modifies the 'Create order for this customer' local action.
*/
class CustomerOrderLocalAction extends LocalActionDefault {
/**
* {@inheritdoc}
*/
public function getRouteParameters(RouteMatchInterface $route_match) {
return [
'user' => $route_match
->getRawParameter('arg_0'),
];
}
}
Classes
Name | Description |
---|---|
CustomerOrderLocalAction | Modifies the 'Create order for this customer' local action. |