You are here

public function GroupContentListBuilder::buildHeader in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Controller/GroupContentListBuilder.php \Drupal\group\Entity\Controller\GroupContentListBuilder::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/Entity/Controller/GroupContentListBuilder.php, line 94

Class

GroupContentListBuilder
Provides a list controller for group content entities.

Namespace

Drupal\group\Entity\Controller

Code

public function buildHeader() {
  $header = [
    'id' => $this
      ->t('ID'),
    'label' => $this
      ->t('Content label'),
    'entity_type' => $this
      ->t('Entity type'),
    'plugin' => $this
      ->t('Plugin used'),
  ];
  return $header + parent::buildHeader();
}