public function OrderReassignForm::__construct in Commerce Core 8.2
Constructs a new OrderReassignForm object.
Parameters
\Drupal\Core\Routing\CurrentRouteMatch $current_route_match: The current route match.
\Drupal\commerce_order\OrderAssignmentInterface $order_assignment: The order assignment service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- modules/
order/ src/ Form/ OrderReassignForm.php, line 50
Class
- OrderReassignForm
- Provides a form for assigning orders to a different customer.
Namespace
Drupal\commerce_order\FormCode
public function __construct(CurrentRouteMatch $current_route_match, OrderAssignmentInterface $order_assignment, EntityTypeManagerInterface $entity_type_manager) {
$this->order = $current_route_match
->getParameter('commerce_order');
$this->orderAssignment = $order_assignment;
$this->userStorage = $entity_type_manager
->getStorage('user');
}