You are here

public function SimpleMegaMenuListBuilder::buildHeader in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/SimpleMegaMenuListBuilder.php \Drupal\simple_megamenu\SimpleMegaMenuListBuilder::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

src/SimpleMegaMenuListBuilder.php, line 70

Class

SimpleMegaMenuListBuilder
Defines a class to build a listing of Simple mega menu entities.

Namespace

Drupal\simple_megamenu

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('Simple mega menu ID');
  $header['name'] = $this
    ->t('Name');
  $header['type'] = $this
    ->t('Type');
  $header['target_menu'] = $this
    ->t('Target Menu');
  return $header + parent::buildHeader();
}