Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

Shipment ShippingMethod Criterion

The ShippingMethod Search Criterion searches for shipments based on a shipping method applied to them.

Arguments

  • value - one or an array of ShippingMethodInterface objects that indicate the shipping methods

Example

PHP

1
2
3
4
5
6
7
8
use Ibexa\Contracts\Shipping\Shipment\Query\Criterion\ShippingMethod;
use Ibexa\Contracts\Shipping\Shipment\ShipmentQuery;
use Ibexa\Contracts\Shipping\Value\ShippingMethod\ShippingMethodInterface;

/** @var ShippingMethodInterface $shippingMethod */
$query = new ShipmentQuery(
    new ShippingMethod($shippingMethod)
);