You are here

public function SearchPageListBuilder::buildHeader in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::buildHeader()
  2. 9 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides DraggableListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

core/modules/search/src/SearchPageListBuilder.php, line 115

Class

SearchPageListBuilder
Defines a class to build a listing of search page entities.

Namespace

Drupal\search

Code

public function buildHeader() {
  $header['label'] = [
    'data' => $this
      ->t('Label'),
  ];
  $header['url'] = [
    'data' => $this
      ->t('URL'),
    'class' => [
      RESPONSIVE_PRIORITY_LOW,
    ],
  ];
  $header['plugin'] = [
    'data' => $this
      ->t('Type'),
    'class' => [
      RESPONSIVE_PRIORITY_LOW,
    ],
  ];
  $header['status'] = [
    'data' => $this
      ->t('Status'),
  ];
  $header['progress'] = [
    'data' => $this
      ->t('Indexing progress'),
    'class' => [
      RESPONSIVE_PRIORITY_MEDIUM,
    ],
  ];
  return $header + parent::buildHeader();
}