You are here

public function TaskListBuilder::buildHeader in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/TaskListBuilder.php \Drupal\gdpr_tasks\TaskListBuilder::buildHeader()
  2. 3.0.x modules/gdpr_tasks/src/TaskListBuilder.php \Drupal\gdpr_tasks\TaskListBuilder::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 TaskListBuilder::buildHeader()
TaskListBuilder::render in modules/gdpr_tasks/src/TaskListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

modules/gdpr_tasks/src/TaskListBuilder.php, line 56

Class

TaskListBuilder
Defines a class to build a listing of Task entities.

Namespace

Drupal\gdpr_tasks

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('Task ID');
  $header['name'] = $this
    ->t('Name');
  $header['user'] = $this
    ->t('User');
  $header['type'] = $this
    ->t('Type');
  $header['created'] = $this
    ->t('Requested');
  $header['requested_by'] = $this
    ->t('Requested by');
  return $header + parent::buildHeader();
}