public function MediaBundleListBuilder::render in Media entity 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/
MediaBundleListBuilder.php, line 43
Class
- MediaBundleListBuilder
- Provides a listing of media bundles.
Namespace
Drupal\media_entityCode
public function render() {
$build = parent::render();
$build['#empty'] = $this
->t('No media bundle available. <a href="@link">Add media bundle</a>.', [
'@link' => Url::fromRoute('entity.media_bundle.add_form')
->toString(),
]);
return $build;
}