public function TokenCustomListBuilder::buildHeader in Custom Tokens 8
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/
TokenCustomListBuilder.php, line 21
Class
- TokenCustomListBuilder
- Defines a class to build a listing of custom token entities.
Namespace
Drupal\token_customCode
public function buildHeader() {
$header['machine_name'] = $this
->t('Machine name');
$header['type'] = $this
->t('Type');
$header['name'] = $this
->t('Name');
$header['description'] = t('Description');
$header['content'] = t('Content');
return $header + parent::buildHeader();
}