public function PetListBuilder::buildHeader in Previewable email templates 8.4
Same name and namespace in other branches
- 8 src/Controller/PetListBuilder.php \Drupal\pet\Controller\PetListBuilder::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/
Controller/ PetListBuilder.php, line 52
Class
- PetListBuilder
- Class for pet listing page.
Namespace
Drupal\pet\ControllerCode
public function buildHeader() {
$header['id'] = $this
->t('PET ID');
$header['title'] = $this
->t('Title');
$header['subject'] = $this
->t('Subject');
$header['status'] = $this
->t('Status');
return $header + parent::buildHeader();
}