You are here

public function PaymentListBuilder::render in Payment 8.2

Builds the entity listing as renderable array for table.html.twig.

@todo Add a link to add a new item to the #empty text.

Overrides EntityListBuilder::render

File

src/Entity/Payment/PaymentListBuilder.php, line 109

Class

PaymentListBuilder
Lists payment entities.

Namespace

Drupal\payment\Entity\Payment

Code

public function render() {
  $build = parent::render();
  $build['table']['#empty'] = $this
    ->t('There are no payments yet.');
  return $build;
}