You are here

public function GroupTypeListBuilder::buildHeader in Group 8

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

Class

GroupTypeListBuilder
Defines a class to build a listing of group type entities.

Namespace

Drupal\group\Entity\Controller

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Name');
  $header['description'] = [
    'data' => $this
      ->t('Description'),
    'class' => [
      RESPONSIVE_PRIORITY_MEDIUM,
    ],
  ];
  return $header + parent::buildHeader();
}