You are here

public function PushNotificationListBuilder::render in Push Notifications 8

Add the table header.

Overrides EntityListBuilder::render

File

src/Entity/Controller/PushNotificationListBuilder.php, line 26
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 render() {
  $build['description'] = array(
    '#markup' => $this
      ->t('List of all push notifications in the database.'),
  );
  $build['table'] = parent::render();
  $build['table']['table']['#empty'] = $this
    ->t('There are no push notifications.');
  return $build;
}