You are here

public function Shipment::setTrackingCode in Commerce Shipping 8.2

Sets the shipment tracking code.

Parameters

string $tracking_code: The shipment tracking code.

Return value

$this

Overrides ShipmentInterface::setTrackingCode

File

src/Entity/Shipment.php, line 433

Class

Shipment
Defines the shipment entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setTrackingCode($tracking_code) {
  $this
    ->set('tracking_code', $tracking_code);
  return $this;
}