function MediaTypeListBuilder::render
Same name in other branches
- 9 core/modules/media/src/MediaTypeListBuilder.php \Drupal\media\MediaTypeListBuilder::render()
- 10 core/modules/media/src/MediaTypeListBuilder.php \Drupal\media\MediaTypeListBuilder::render()
- 11.x core/modules/media/src/MediaTypeListBuilder.php \Drupal\media\MediaTypeListBuilder::render()
Overrides EntityListBuilder::render
File
-
core/
modules/ media/ src/ MediaTypeListBuilder.php, line 41
Class
- MediaTypeListBuilder
- Provides a listing of media types.
Namespace
Drupal\mediaCode
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_type.add_form')->toString(),
]);
return $build;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.