You are here

public function CurrencyListBuilder::buildHeader in Price 8

Same name and namespace in other branches
  1. 3.x src/CurrencyListBuilder.php \Drupal\price\CurrencyListBuilder::buildHeader()
  2. 2.0.x src/CurrencyListBuilder.php \Drupal\price\CurrencyListBuilder::buildHeader()
  3. 2.x src/CurrencyListBuilder.php \Drupal\price\CurrencyListBuilder::buildHeader()
  4. 3.0.x src/CurrencyListBuilder.php \Drupal\price\CurrencyListBuilder::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()

File

src/CurrencyListBuilder.php, line 16

Class

CurrencyListBuilder
Defines the list builder for currencies.

Namespace

Drupal\price

Code

public function buildHeader() {
  $header = [
    'name' => $this
      ->t('Name'),
    'currencyCode' => $this
      ->t('Currency code'),
  ];
  return $header + parent::buildHeader();
}