You are here

public function MappingListBuilder::buildHeader in GatherContent 8.3

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 MappingListBuilder::buildHeader()
MappingListBuilder::load in src/MappingListBuilder.php
Loads entities of this type from storage for listing.

File

src/MappingListBuilder.php, line 50

Class

MappingListBuilder
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();
}