Log in
Interface

ShipmentItemsValidatorInterface

Magento\Sales\Model\Order\Shipment\ShipmentItemsValidatorInterface

What it does

This interface defines a contract for validating items before creating a shipment in Magento 2.

Developers implement this interface to add custom validation rules that check whether order items can be shipped, such as verifying quantities, product types, or business logic constraints.

It's used during the shipment creation process to ensure all items meet the required conditions before proceeding.

Public Methods

  • validate()