You are here

public function GroupMenuContentListBuilder::buildHeader in Group Menu 8

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides GroupContentListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/GroupMenuContentListBuilder.php, line 45

Class

GroupMenuContentListBuilder
Provides a list controller for menus entities in a group.

Namespace

Drupal\groupmenu

Code

public function buildHeader() {
  $header = [
    'id' => $this
      ->t('ID'),
    'label' => $this
      ->t('Menu'),
  ];
  $row = $header + parent::buildHeader();
  unset($row['entity_type'], $row['plugin']);
  return $row;
}