public function PriceListItemListBuilder::render in Commerce Pricelist 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/
PriceListItemListBuilder.php, line 125
Class
- PriceListItemListBuilder
- Defines the list builder for price list items.
Namespace
Drupal\commerce_pricelistCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('There are no prices yet.');
return $build;
}