public function BookingBundleListBuilder::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
- modules/
bat_booking/ src/ BookingBundleListBuilder.php, line 56 - Contains \Drupal\bat_booking\BookingBundleListBuilder.
Class
- BookingBundleListBuilder
- Defines a class to build a listing of event type entities.
Namespace
Drupal\bat_bookingCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No booking bundles available. <a href=":link">Add booking bundle</a>.', [
':link' => Url::fromRoute('entity.bat_booking_bundle.type_add')
->toString(),
]);
return $build;
}