You are here

public function PushNotificationListBuilder::buildHeader in Push Notifications 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/Entity/Controller/PushNotificationListBuilder.php, line 50
Contains Drupal\push_notifications\Entity\Controller\PushNotificationListBuilder

Class

PushNotificationListBuilder
Provides a list controller for the push_notification entity.

Namespace

Drupal\push_notifications\Entity\Controller

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('ID');
  $header['user_id'] = $this
    ->t('Author');
  $header['title'] = $this
    ->t('Title');
  $header['message'] = $this
    ->t('Message');
  $header['created'] = $this
    ->t('Created');
  $header['pushed'] = $this
    ->t('Pushed');
  return $header + parent::buildHeader();
}