You are here

public function Order::label in Ubercart 8.4

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides ContentEntityBase::label

File

uc_order/src/Entity/Order.php, line 76

Class

Order
Defines the order entity class.

Namespace

Drupal\uc_order\Entity

Code

public function label($langcode = NULL) {
  return t('Order @order_id', [
    '@order_id' => $this
      ->id(),
  ]);
}