You are here

public function ILTListBuilder::buildHeader in Opigno Instructor-led Trainings 8

Same name and namespace in other branches
  1. 3.x src/ILTListBuilder.php \Drupal\opigno_ilt\ILTListBuilder::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()

File

src/ILTListBuilder.php, line 17

Class

ILTListBuilder
Provides a list controller for opigno_ilt entity.

Namespace

Drupal\opigno_ilt

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('ID');
  $header['name'] = $this
    ->t('Name');
  $header['training'] = $this
    ->t('Related training');
  $header['date'] = $this
    ->t('Date');
  return $header + parent::buildHeader();
}