public function CropTypeListBuilder::buildHeader in Crop API 8
Same name and namespace in other branches
- 8.2 src/CropTypeListBuilder.php \Drupal\crop\CropTypeListBuilder::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/
CropTypeListBuilder.php, line 69
Class
- CropTypeListBuilder
- Defines a class to build a listing of crop type entities.
Namespace
Drupal\cropCode
public function buildHeader() {
$header = [];
$header['name'] = t('Name');
$header['description'] = [
'data' => $this
->t('Description'),
'class' => [
RESPONSIVE_PRIORITY_MEDIUM,
],
];
$header['aspect_ratio'] = [
'data' => $this
->t('Aspect Ratio'),
];
$header['usage'] = $this
->t('Used in');
return $header + parent::buildHeader();
}