public function ParagraphsTypeListBuilder::buildHeader in Paragraphs 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/
Controller/ ParagraphsTypeListBuilder.php, line 16
Class
- ParagraphsTypeListBuilder
- Provides a listing of ParagraphsType.
Namespace
Drupal\paragraphs\ControllerCode
public function buildHeader() {
$header['icon_file'] = [
'data' => $this
->t('Icon'),
];
$header['label'] = $this
->t('Label');
$header['id'] = $this
->t('Machine name');
$header['description'] = $this
->t('Description');
return $header + parent::buildHeader();
}