You are here

public function FlagListItemListBuilder::render in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/FlagListItemListBuilder.php \Drupal\flag_lists\FlagListItemListBuilder::render()

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/FlagListItemListBuilder.php, line 55

Class

FlagListItemListBuilder
Defines a class to build a listing of Flag list item entities.

Namespace

Drupal\flag_lists

Code

public function render() {
  $build = parent::render();
  $build['table']['#attached']['library'][] = 'flag_lists/flag_lists.table';
  return $build;
}