public function RegistrantTypeListBuilder::render in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Lists/RegistrantTypeListBuilder.php \Drupal\rng\Lists\RegistrantTypeListBuilder::render()
- 3.x src/Lists/RegistrantTypeListBuilder.php \Drupal\rng\Lists\RegistrantTypeListBuilder::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/
Lists/ RegistrantTypeListBuilder.php, line 34
Class
- RegistrantTypeListBuilder
- Builds a list of registrant types.
Namespace
Drupal\rng\ListsCode
public function render() {
$render = parent::render();
$render['table']['#empty'] = t('No registrant types found.');
return $render;
}