public function YamlFormEntityListBuilder::buildHeader in YAML Form 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()
File
- src/YamlFormEntityListBuilder.php, line 128 
Class
- YamlFormEntityListBuilder
- Defines a class to build a listing of form entities.
Namespace
Drupal\yamlformCode
public function buildHeader() {
  $header['title'] = [
    'data' => $this
      ->t('Title'),
  ];
  $header['description'] = [
    'data' => $this
      ->t('Description'),
    'class' => [
      RESPONSIVE_PRIORITY_LOW,
    ],
  ];
  $header['status'] = [
    'data' => $this
      ->t('Status'),
    'class' => [
      RESPONSIVE_PRIORITY_LOW,
    ],
  ];
  $header['author'] = [
    'data' => $this
      ->t('Author'),
    'class' => [
      RESPONSIVE_PRIORITY_LOW,
    ],
  ];
  $header['results_total'] = [
    'data' => $this
      ->t('Total Results'),
    'class' => [
      RESPONSIVE_PRIORITY_MEDIUM,
    ],
  ];
  $header['results_operations'] = [
    'data' => $this
      ->t('Operations'),
    'class' => [
      RESPONSIVE_PRIORITY_MEDIUM,
    ],
  ];
  $header['operations'] = [
    'data' => '',
  ];
  return $header;
}