You are here

public function GeocoderProviderListBuilder::render in Geocoder 8.3

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/GeocoderProviderListBuilder.php, line 75

Class

GeocoderProviderListBuilder
Provides a listing of Geocoder providers.

Namespace

Drupal\geocoder

Code

public function render() : array {
  $build['geocoder_provider_creation_form'] = $this->formBuilder
    ->getForm(GeocoderProviderCreationForm::class);
  $build['geocoder_provider_header']['#markup'] = '<h3>' . $this
    ->t('Active providers') . '</h3>';
  $build['geocoder_provider_table'] = parent::render();
  return $build;
}