public function GroupListBuilder::buildHeader in Group 2.0.x
Same name and namespace in other branches
- 8 src/Entity/Controller/GroupListBuilder.php \Drupal\group\Entity\Controller\GroupListBuilder::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()
1 call to GroupListBuilder::buildHeader()
- GroupListBuilder::getEntityIds in src/Entity/ Controller/ GroupListBuilder.php 
- Loads entity IDs using a pager sorted by the entity id.
File
- src/Entity/ Controller/ GroupListBuilder.php, line 92 
Class
- GroupListBuilder
- Provides a list controller for group entities.
Namespace
Drupal\group\Entity\ControllerCode
public function buildHeader() {
  $header = [
    'gid' => [
      'data' => $this
        ->t('Group ID'),
      'specifier' => 'id',
      'field' => 'id',
    ],
    'label' => [
      'data' => $this
        ->t('Name'),
      'specifier' => 'label',
      'field' => 'label',
    ],
    'type' => [
      'data' => $this
        ->t('Type'),
      'specifier' => 'type',
      'field' => 'type',
    ],
    'status' => [
      'data' => $this
        ->t('Status'),
      'specifier' => 'status',
      'field' => 'status',
    ],
    'uid' => [
      'data' => $this
        ->t('Owner'),
    ],
  ];
  return $header + parent::buildHeader();
}