You are here

public function MegaMenuList::buildHeader in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/Controller/MegaMenuList.php \Drupal\tb_megamenu\Controller\MegaMenuList::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/Controller/MegaMenuList.php, line 17

Class

MegaMenuList
Provides a listing of MegaMenuConfig entities.

Namespace

Drupal\tb_megamenu\Controller

Code

public function buildHeader() {
  $header['menu'] = $this
    ->t('Menu Name');
  $header['label'] = $this
    ->t('Menu Title');
  $header['theme'] = $this
    ->t('Theme Name');
  return $header + parent::buildHeader();
}