You are here

public function CategoryListBuilder::buildHeader in Mass Contact 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()

File

src/CategoryListBuilder.php, line 18

Class

CategoryListBuilder
Provides a listing of Mass contact category entities.

Namespace

Drupal\mass_contact

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Mass contact category');
  $header['id'] = $this
    ->t('Machine name');
  $header['categories'] = $this
    ->t('Categories');
  $header['selected'] = $this
    ->t('Selected by default');
  return $header + parent::buildHeader();
}