public function Package::addProducts in Ubercart 8.4
Adds products to this package.
Parameters
\Drupal\uc_order\OrderProductInterface[] $products: The products to add.
Return value
$this
Overrides PackageInterface::addProducts
File
- shipping/
uc_fulfillment/ src/ Package.php, line 373
Class
- Package
- Defines the Package class.
Namespace
Drupal\uc_fulfillmentCode
public function addProducts(array $products) {
$this->products = array_replace($this->products, $products);
return $this;
}