public function ToolbarMenuElementListBuilder::buildHeader in Toolbar Menu 8
Same name and namespace in other branches
- 8.2 src/ToolbarMenuElementListBuilder.php \Drupal\toolbar_menu\ToolbarMenuElementListBuilder::buildHeader()
Builds the header row for the entity listing.
Return value
array A render array structure of header strings.
Overrides DraggableListBuilder::buildHeader
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- src/
ToolbarMenuElementListBuilder.php, line 23
Class
- ToolbarMenuElementListBuilder
- Provides a listing of Toolbar menu element entities.
Namespace
Drupal\toolbar_menuCode
public function buildHeader() {
$header['label'] = $this
->t('Label');
$header['menu'] = $this
->t('Menu');
$header['rewrite_label'] = $this
->t('Use menu label');
return $header + parent::buildHeader();
}