public function TransactionOperationListBuilder::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/
TransactionOperationListBuilder.php, line 136
Class
- TransactionOperationListBuilder
- Provides a entity list page for transaction operations.
Namespace
Drupal\transactionCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No transaction operations available. <a href=":link">Add a transaction operation</a>.', [
':link' => Url::fromRoute('entity.transaction_operation.add_form', [
'transaction_type' => $this->transactionTypeId,
])
->toString(),
]);
return $build;
}