public function XmlSitemapListBuilder::buildHeader in XML sitemap 2.x
Same name and namespace in other branches
- 8 src/XmlSitemapListBuilder.php \Drupal\xmlsitemap\XmlSitemapListBuilder::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/
XmlSitemapListBuilder.php, line 74
Class
- XmlSitemapListBuilder
- Provides a listing of XmlSitemap.
Namespace
Drupal\xmlsitemapCode
public function buildHeader() {
$header['label'] = $this
->t('XmlSitemap');
if ($this->moduleHandler
->moduleExists('language')) {
$header['language'] = $this
->t('Language');
}
$header['id'] = $this
->t('Sitemap ID');
return $header + parent::buildHeader();
}