public function PaymentListBuilder::buildHeader in Payment 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()
1 call to PaymentListBuilder::buildHeader()
- PaymentListBuilder::getEntityIds in src/
Entity/ Payment/ PaymentListBuilder.php - Loads entity IDs using a pager sorted by the entity id.
File
- src/
Entity/ Payment/ PaymentListBuilder.php, line 119
Class
- PaymentListBuilder
- Lists payment entities.
Namespace
Drupal\payment\Entity\PaymentCode
public function buildHeader() {
$header['updated'] = [
'data' => $this
->t('Last updated'),
'field' => 'changed',
'sort' => 'DESC',
'specifier' => 'changed',
];
$header['status'] = [
'data' => $this
->t('Status'),
];
$header['amount'] = [
'data' => $this
->t('Amount'),
];
$header['payment_method'] = array(
'data' => $this
->t('Payment method'),
'class' => array(
RESPONSIVE_PRIORITY_LOW,
),
);
$header['owner'] = array(
'data' => $this
->t('Payer'),
'class' => array(
RESPONSIVE_PRIORITY_MEDIUM,
),
);
$header['operations'] = [
'data' => $this
->t('Operations'),
];
return $header;
}