public function NewsletterListBuilder::buildHeader in Simplenews 8.2
Same name and namespace in other branches
- 8 src/NewsletterListBuilder.php \Drupal\simplenews\NewsletterListBuilder::buildHeader()
- 3.x src/NewsletterListBuilder.php \Drupal\simplenews\NewsletterListBuilder::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/
NewsletterListBuilder.php, line 18
Class
- NewsletterListBuilder
- Defines a class to build a listing of simplenews newsletter entities.
Namespace
Drupal\simplenewsCode
public function buildHeader() {
$header['name'] = $this
->t('Newsletter name');
return $header + parent::buildHeader();
}