You are here

public function PriceListListBuilder::buildHeader in Commerce Pricelist 8.2

Same name and namespace in other branches
  1. 8 src/PriceListListBuilder.php \Drupal\commerce_pricelist\PriceListListBuilder::buildHeader()

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()

1 call to PriceListListBuilder::buildHeader()
PriceListListBuilder::buildForm in src/PriceListListBuilder.php
Form constructor.

File

src/PriceListListBuilder.php, line 92

Class

PriceListListBuilder
Defines the list builder for price lists.

Namespace

Drupal\commerce_pricelist

Code

public function buildHeader() {
  $header['name'] = $this
    ->t('Name');
  $header['start_date'] = $this
    ->t('Start date');
  $header['end_date'] = $this
    ->t('End date');
  if ($this->hasTableDrag) {
    $header['weight'] = $this
      ->t('Weight');
  }
  return $header + parent::buildHeader();
}