public function CommentTypeListBuilder::buildHeader in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/src/CommentTypeListBuilder.php \Drupal\comment\CommentTypeListBuilder::buildHeader()
- 9 core/modules/comment/src/CommentTypeListBuilder.php \Drupal\comment\CommentTypeListBuilder::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
- core/
modules/ comment/ src/ CommentTypeListBuilder.php, line 31
Class
- CommentTypeListBuilder
- Defines a class to build a listing of comment type entities.
Namespace
Drupal\commentCode
public function buildHeader() {
$header['type'] = t('Comment type');
$header['description'] = t('Description');
return $header + parent::buildHeader();
}