You are here

public function NewsletterListBuilder::buildHeader in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/NewsletterListBuilder.php \Drupal\simplenews\NewsletterListBuilder::buildHeader()
  2. 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 17

Class

NewsletterListBuilder
Defines a class to build a listing of simplenews newsletter entities.

Namespace

Drupal\simplenews

Code

public function buildHeader() {
  $header['name'] = t('Newsletter name');
  return $header + parent::buildHeader();
}