public function CustomFilterListBuilder::buildHeader in Custom filter 8
Same name and namespace in other branches
- 2.0.x src/CustomFilterListBuilder.php \Drupal\customfilter\CustomFilterListBuilder::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/
CustomFilterListBuilder.php, line 21
Class
- CustomFilterListBuilder
- Provides a listing of Custom Filters.
Namespace
Drupal\customfilterCode
public function buildHeader() {
$header['label'] = $this
->t('Filter');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}