public function UcWishlistListBuilder::buildHeader in UC Wish List 8
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 UcWishlistListBuilder::buildHeader()
- UcWishlistListBuilder::load in src/
UcWishlistListBuilder.php - Loads entities of this type from storage for listing.
File
- src/
UcWishlistListBuilder.php, line 86
Class
- UcWishlistListBuilder
- Defining a class for building list of wishlist entities.
Namespace
Drupal\uc_wishlistCode
public function buildHeader() {
$header = [
'title' => [
'data' => $this
->t('Title'),
'field' => 'title',
'specifier' => 'title',
],
'expiration' => [
'data' => $this
->t('Expiration date'),
'field' => 'expiration',
'specifier' => 'expiration',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'address' => [
'data' => $this
->t('Address'),
'field' => 'address',
'specifier' => 'address',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'private' => [
'data' => $this
->t('Private'),
'field' => 'private',
'specifier' => 'private',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'description' => [
'data' => $this
->t('Description'),
'field' => 'description',
'specifier' => 'description',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
];
return $header + parent::buildHeader();
}