public function CookieCategoryListBuilder::buildHeader in EU Cookie Compliance (GDPR Compliance) 8
Same name and namespace in other branches
- 2.0.x src/CookieCategoryListBuilder.php \Drupal\eu_cookie_compliance\CookieCategoryListBuilder::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/
CookieCategoryListBuilder.php, line 31
Class
- CookieCategoryListBuilder
- Provides a listing of Cookie category entities.
Namespace
Drupal\eu_cookie_complianceCode
public function buildHeader() {
$header['sorter'] = '';
$header['label'] = $this
->t('Label');
$header['id'] = $this
->t('Machine name');
$header['description'] = $this
->t('Description');
$header['checkbox_default_state'] = $this
->t('Checkbox default state');
return $header + parent::buildHeader();
}