public function CustomPublishingOptionListBuilder::buildHeader in Custom Publishing Options 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()
1 call to CustomPublishingOptionListBuilder::buildHeader()
- CustomPublishingOptionListBuilder::render in src/
CustomPublishingOptionListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
File
- src/
CustomPublishingOptionListBuilder.php, line 16
Class
- CustomPublishingOptionListBuilder
- Provides a listing of Custom publishing option entities.
Namespace
Drupal\custom_pubCode
public function buildHeader() {
$header['label'] = $this
->t('Custom publishing option');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}