public function OrderItemMatcherInterface::matchAll in Commerce Core 8.2
Finds all matching order items for the given order item.
Parameters
\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item.
\Drupal\commerce_order\Entity\OrderItemInterface[] $order_items: The order items to match against.
Return value
\Drupal\commerce_order\Entity\OrderItemInterface[] The matching order items.
1 method overrides OrderItemMatcherInterface::matchAll()
- OrderItemMatcher::matchAll in modules/
cart/ src/ OrderItemMatcher.php - Finds all matching order items for the given order item.
File
- modules/
cart/ src/ OrderItemMatcherInterface.php, line 45
Class
- OrderItemMatcherInterface
- Finds matching order items.
Namespace
Drupal\commerce_cartCode
public function matchAll(OrderItemInterface $order_item, array $order_items);