public function SitewideAlertListBuilder::buildHeader in Sitewide 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/
SitewideAlertListBuilder.php, line 19
Class
- SitewideAlertListBuilder
- Defines a class to build a listing of Sitewide Alert entities.
Namespace
Drupal\sitewide_alertCode
public function buildHeader() {
$header['name'] = $this
->t('Name');
$header['style'] = $this
->t('Style');
$header['active'] = $this
->t('Active');
$header['scheduled'] = $this
->t('Scheduled');
return $header + parent::buildHeader();
}