public function MailingListListBuilder::render in Mailing List 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
- src/
MailingListListBuilder.php, line 62
Class
- MailingListListBuilder
- Defines a class to build a listing of mailing list entities.
Namespace
Drupal\mailing_listCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No mailing lists available. <a href=":link">Add mailing list</a>.', [
':link' => Url::fromRoute('mailing_list.list_add')
->toString(),
]);
return $build;
}