function SearchPageListBuilder::buildHeader

Same name in other branches
  1. 9 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::buildHeader()
  2. 10 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::buildHeader()
  3. 11.x core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::buildHeader()

Overrides DraggableListBuilder::buildHeader

File

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

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.