You are here

public function StockTransactions2::getTitle in Commerce Stock 8

Returns the page title.

1 string reference to 'StockTransactions2::getTitle'
commerce_stock_ui.routing.yml in modules/ui/commerce_stock_ui.routing.yml
modules/ui/commerce_stock_ui.routing.yml

File

modules/ui/src/Form/StockTransactions2.php, line 68

Class

StockTransactions2
The second part of a two part create stock transaction form.

Namespace

Drupal\commerce_stock_ui\Form

Code

public function getTitle() {
  $variation_id = $this->request->query
    ->get('commerce_product_v_id');
  $product_variation = $this->productVariationStorage
    ->load($variation_id);
  return $this
    ->t('Create stock transaction for :product_variation', [
    ':product_variation' => $product_variation
      ->label(),
  ]);
}