You are here

public function ShipmentController::pageTitle in Ubercart 8.4

The page title callback for shipment views.

Parameters

\Drupal\uc_order\OrderInterface $uc_order: The shipment's order.

\Drupal\uc_fulfillment\ShipmentInterface $uc_shipment: The ID of shipment.

Return value

string The page title.

1 string reference to 'ShipmentController::pageTitle'
uc_fulfillment.routing.yml in shipping/uc_fulfillment/uc_fulfillment.routing.yml
shipping/uc_fulfillment/uc_fulfillment.routing.yml

File

shipping/uc_fulfillment/src/Controller/ShipmentController.php, line 33

Class

ShipmentController
Controller routines for shipments.

Namespace

Drupal\uc_fulfillment\Controller

Code

public function pageTitle(OrderInterface $uc_order, ShipmentInterface $uc_shipment) {
  return $this
    ->t('Shipment @id', [
    '@id' => $uc_shipment
      ->id(),
  ]);
}