public function ConsumerListBuilder::buildHeader in Consumers 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/
ConsumerListBuilder.php, line 17
Class
- ConsumerListBuilder
- Defines a class to build a listing of Access Token entities.
Namespace
Drupal\consumersCode
public function buildHeader() {
$header['uuid'] = $this
->t('UUID');
$header['label'] = $this
->t('Label');
$header['is_default'] = $this
->t('Is Default?');
$context = [
'type' => 'header',
];
$this
->moduleHandler()
->alter('consumers_list', $header, $context);
$header = $header + parent::buildHeader();
return $header;
}