public function ScheduleListBuilder::buildHeader in Business Rules 8
Same name and namespace in other branches
- 2.x src/ScheduleListBuilder.php \Drupal\business_rules\ScheduleListBuilder::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/
ScheduleListBuilder.php, line 20
Class
- ScheduleListBuilder
- Defines a class to build a listing of Schedule entities.
Namespace
Drupal\business_rulesCode
public function buildHeader() {
// TODO: show links for schedules tasks and executed tasks.
$header['id'] = $this
->t('Schedule ID');
$header['triggered_by'] = $this
->t('Triggered by');
$header['name'] = $this
->t('Name');
$header['scheduled_date'] = $this
->t('Scheduled Date');
$header['executed'] = $this
->t('Executed');
$header['execution_date'] = $this
->t('Execution Date');
$header['filter'] = [
'data' => [
'#markup' => 'filter',
],
'style' => 'display: none',
];
return $header + parent::buildHeader();
}