You are here

public function MappingListBuilder::buildHeader in GatherContent 8.5

Same name and namespace in other branches
  1. 8.4 gathercontent_ui/src/MappingListBuilder.php \Drupal\gathercontent_ui\MappingListBuilder::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 MappingListBuilder::buildHeader()
MappingListBuilder::load in gathercontent_ui/src/MappingListBuilder.php
Loads entities of this type from storage for listing.

File

gathercontent_ui/src/MappingListBuilder.php, line 110

Class

MappingListBuilder
Provides a listing of GatherContent Mapping entities.

Namespace

Drupal\gathercontent_ui

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',
    ],
    'entity_type' => [
      'data' => $this
        ->t('Entity type'),
      'field' => 'entity_type',
      'specifier' => 'entity_type',
    ],
    'content_type_name' => [
      'data' => $this
        ->t('Bundle'),
      '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();
}