You are here

public function SearchEngineListBuilder::render in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 modules/simple_sitemap_engines/src/Controller/SearchEngineListBuilder.php \Drupal\simple_sitemap_engines\Controller\SearchEngineListBuilder::render()

Build the render array.

Overrides EntityListBuilder::render

File

modules/simple_sitemap_engines/src/Controller/SearchEngineListBuilder.php, line 96

Class

SearchEngineListBuilder
Search engine entity list builder.

Namespace

Drupal\simple_sitemap_engines\Controller

Code

public function render() {
  return [
    'simple_sitemap_engines' => [
      '#type' => 'details',
      '#open' => TRUE,
      '#prefix' => FormHelper::getDonationText(),
      '#title' => $this
        ->t('Submission status'),
      'table' => parent::render(),
      '#description' => $this
        ->t('Submission settings can be configured <a href="@url">here</a>.', [
        '@url' => $GLOBALS['base_url'] . '/admin/config/search/simplesitemap/engines/settings',
      ]),
    ],
  ];
}