You are here

public function ShipmentListBuilder::buildHeader in Commerce Shipping 8.2

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides EntityListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/ShipmentListBuilder.php, line 95

Class

ShipmentListBuilder
Defines the list builder for shipments.

Namespace

Drupal\commerce_shipping

Code

public function buildHeader() {
  $header = [
    'label' => $this
      ->t('Shipment'),
    'tracking' => $this
      ->t('Tracking'),
    'amount' => $this
      ->t('Amount'),
    'state' => $this
      ->t('State'),
  ];
  return $header + parent::buildHeader();
}