public function ItemListBuilder::buildHeader in Business Rules 2.x
Same name and namespace in other branches
- 8 src/ItemListBuilder.php \Drupal\business_rules\ItemListBuilder::buildHeader()
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/
ItemListBuilder.php, line 16
Class
- ItemListBuilder
- Provides a listing of Business rules Items entities.
Namespace
Drupal\business_rulesCode
public function buildHeader() {
$header['label'] = [
'data' => [
'#markup' => $this
->t('Label'),
],
];
$header['id'] = [
'data' => [
'#markup' => $this
->t('Machine name'),
],
];
$header['type'] = [
'data' => [
'#markup' => $this
->t('Type'),
],
];
$header['description'] = [
'data' => [
'#markup' => $this
->t('Description'),
],
];
$header['tags'] = $this
->t('Tags');
$header['filter'] = [
'data' => [
'#markup' => 'filter',
],
'style' => 'display: none',
];
return $header + parent::buildHeader();
}