function SearchPageListBuilder::buildHeader
Builds the header row for the entity listing.
Return value
array A render array structure for the header.
Overrides DraggableListBuilderTrait::buildHeader
File
- 
              core/
modules/ search/ src/ SearchPageListBuilder.php, line 115  
Class
- SearchPageListBuilder
 - Defines a class to build a listing of search page entities.
 
Namespace
Drupal\searchCode
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.