public function TaxRateListBuilder::buildHeader in Ubercart 8.4
Same name in this branch
- 8.4 uc_tax/src/TaxRateListBuilder.php \Drupal\uc_tax\TaxRateListBuilder::buildHeader()
- 8.4 uc_tax/src/Controller/TaxRateListBuilder.php \Drupal\uc_tax\Controller\TaxRateListBuilder::buildHeader()
Builds the header row for the entity listing.
Return value
array A render array structure of header strings.
Overrides DraggableListBuilder::buildHeader
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- uc_tax/
src/ TaxRateListBuilder.php, line 62
Class
- TaxRateListBuilder
- Provides a listing of tax rate entities.
Namespace
Drupal\uc_taxCode
public function buildHeader() {
$header['label'] = [
'data' => $this
->t('Name'),
];
$header['description'] = [
'data' => $this
->t('Description'),
];
$header['shippable'] = [
'data' => $this
->t('Taxed products'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['product_types'] = [
'data' => $this
->t('Taxed product types'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['line_item_types'] = [
'data' => $this
->t('Taxed line items'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['status'] = [
'data' => $this
->t('Status'),
];
return $header + parent::buildHeader();
}