You are here

public function ClusterListBuilder::buildHeader in Elasticsearch Connector 8.6

Same name and namespace in other branches
  1. 8.7 src/Controller/ClusterListBuilder.php \Drupal\elasticsearch_connector\Controller\ClusterListBuilder::buildHeader()
  2. 8 src/Controller/ClusterListBuilder.php \Drupal\elasticsearch_connector\Controller\ClusterListBuilder::buildHeader()
  3. 8.2 src/Controller/ClusterListBuilder.php \Drupal\elasticsearch_connector\Controller\ClusterListBuilder::buildHeader()
  4. 8.5 src/Controller/ClusterListBuilder.php \Drupal\elasticsearch_connector\Controller\ClusterListBuilder::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()

1 call to ClusterListBuilder::buildHeader()
ClusterListBuilder::render in src/Controller/ClusterListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

src/Controller/ClusterListBuilder.php, line 118

Class

ClusterListBuilder
Provides a listing of Clusters along with their indices.

Namespace

Drupal\elasticsearch_connector\Controller

Code

public function buildHeader() {
  return [
    'type' => $this
      ->t('Type'),
    'title' => $this
      ->t('Name'),
    'machine_name' => $this
      ->t('Machine Name'),
    'status' => $this
      ->t('Status'),
    'cluster_status' => $this
      ->t('Cluster Status'),
  ] + parent::buildHeader();
}