public function TransactionTypeListBuilder::render in Transaction 8
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/
TransactionTypeListBuilder.php, line 171
Class
- TransactionTypeListBuilder
- Provides a entity list page for transaction types.
Namespace
Drupal\transactionCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No transaction types available. <a href=":link">Add a transaction type</a>.', [
':link' => Url::fromRoute('transaction.transaction_type_creation')
->toString(),
]);
return $build;
}