You are here

public function MicrositeListBuilder::buildHeader in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x modules/entity_hierarchy_microsite/src/MicrositeListBuilder.php \Drupal\entity_hierarchy_microsite\MicrositeListBuilder::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()

File

modules/entity_hierarchy_microsite/src/MicrositeListBuilder.php, line 16

Class

MicrositeListBuilder
Defines a class for a list builder for microsite entities.

Namespace

Drupal\entity_hierarchy_microsite

Code

public function buildHeader() {
  return [
    'name' => $this
      ->t('Name'),
    'home' => $this
      ->t('Home page'),
  ] + parent::buildHeader();
}