public function PromotionListBuilder::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/
promotion/ src/ PromotionListBuilder.php, line 192
Class
- PromotionListBuilder
- Defines the list builder for promotions.
Namespace
Drupal\commerce_promotionCode
public function render() {
$build = $this->formBuilder
->getForm($this);
$build['#attached']['library'][] = 'commerce_promotion/admin_list';
return $build;
}