public function TypeGroupBundleListBuilder::render in Booking and Availability Management Tools for Drupal 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/
TypeGroupBundleListBuilder.php, line 56 - Contains \Drupal\bat\TypeGroupBundleListBuilder.
Class
- TypeGroupBundleListBuilder
- Defines a class to build a listing of event type entities.
Namespace
Drupal\batCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No type group bundles available. <a href=":link">Add type group bundle</a>.', [
':link' => Url::fromRoute('entity.bat_type_group_bundle.type_add')
->toString(),
]);
return $build;
}