public function SiteAlertListBuilder::buildHeader in Site Alert 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/
SiteAlertListBuilder.php, line 16
Class
- SiteAlertListBuilder
- Implements SiteAlertListBuilder class.
Namespace
Drupal\site_alertCode
public function buildHeader() {
$header = [
'active' => [
'data' => $this
->t('Active'),
'field' => 'active',
'specifier' => 'active',
'class' => [
RESPONSIVE_PRIORITY_MEDIUM,
],
],
'label' => [
'data' => $this
->t('Label'),
'field' => 'label',
'specifier' => 'label',
],
'message' => [
'data' => $this
->t('Message'),
'field' => 'message',
'specifier' => 'message',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'scheduling__value' => [
'data' => $this
->t('Start time'),
'field' => 'scheduling__value',
'specifier' => 'scheduling__value',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'scheduling__end_value' => [
'data' => $this
->t('End time'),
'field' => 'scheduling__end_value',
'specifier' => 'scheduling__end_value',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
];
return $header + parent::buildHeader();
}