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 EntityListBuilder::buildHeader
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- uc_tax/
src/ Controller/ TaxRateListBuilder.php, line 17
Class
- TaxRateListBuilder
- Provides a listing of uc_tax_rate configuration entities.
Namespace
Drupal\uc_tax\ControllerCode
public function buildHeader() {
$header['label'] = $this
->t('Name');
$header['rate'] = $this
->t('Rate');
$header['shippable'] = $this
->t('Taxed products');
$header['product_types'] = $this
->t('Taxed product types');
$header['line_item_types'] = $this
->t('Taxed line items');
$header['weight'] = $this
->t('Weight');
return $header + parent::buildHeader();
}