public function ProductVariationListBuilder::render in Commerce Core 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
- modules/
product/ src/ ProductVariationListBuilder.php, line 159
Class
- ProductVariationListBuilder
- Defines the list builder for product variations.
Namespace
Drupal\commerce_productCode
public function render() {
$build = $this->formBuilder
->getForm($this);
// Only add the pager if a limit is specified.
if ($this->limit) {
$build['pager'] = [
'#type' => 'pager',
];
}
return $build;
}