public function OrderReport::label in Commerce Reporting 8
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
- src/
Entity/ OrderReport.php, line 52
Class
- OrderReport
- Defines the order report entity class.
Namespace
Drupal\commerce_reports\EntityCode
public function label() {
if (!$this
->isNew()) {
return t('Order report for @order_number', [
'@order_number' => $this
->getOrder()
->getOrderNumber(),
]);
}
return parent::label();
}