You are here

public function GathercontentMappingListBuilder::buildHeader in GatherContent 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()

1 call to GathercontentMappingListBuilder::buildHeader()
GathercontentMappingListBuilder::load in src/GathercontentMappingListBuilder.php
Loads entities of this type from storage for listing.

File

src/GathercontentMappingListBuilder.php, line 49

Class

GathercontentMappingListBuilder
Provides a listing of GatherContent Mapping entities.

Namespace

Drupal\gathercontent

Code

public function buildHeader() {
  return [
    'gathercontent_project' => [
      'data' => $this
        ->t('GatherContent Project'),
      'field' => 'gathercontent_project',
      'specifier' => 'gathercontent_project',
    ],
    'gathercontent_template' => [
      'data' => $this
        ->t('GatherContent Template'),
      'field' => 'gathercontent_template',
      'specifier' => 'gathercontent_template',
    ],
    'content_type_name' => [
      'data' => $this
        ->t('Content type'),
      'field' => 'content_type_name',
      'specifier' => 'content_type_name',
    ],
    'updated_gathercontent' => [
      'data' => $this
        ->t('Last updated in GatherContent'),
    ],
    'updated_drupal' => [
      'data' => $this
        ->t('Updated in Drupal'),
      'field' => 'updated_drupal',
      'specifier' => 'updated_drupal',
    ],
  ] + parent::buildHeader();
}