You are here

public function CustomLanguageListBuilder::render in Custom Language field 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 DraggableListBuilder::render

File

src/CustomLanguageListBuilder.php, line 72

Class

CustomLanguageListBuilder
Defines a class to build a listing of Custom Languages.

Namespace

Drupal\languagefield

Code

public function render() {
  $build = parent::render();
  $build['#empty'] = $this
    ->t('There is no custom language.');
  return $build;
}