public function MediaBulkConfigListBuilder::render in Media Bulk Upload 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/
MediaBulkConfigListBuilder.php, line 36
Class
- MediaBulkConfigListBuilder
- Provides a listing of Media Bulk Config entities.
Namespace
Drupal\media_bulk_uploadCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('No media types available. <a href=":url">Add media type</a>.', [
':url' => Url::fromRoute('entity.media_bulk_config.add_form')
->toString(),
]);
return $build;
}