You are here

public function SitemapController::getTitle in Sitemap 8.2

Same name and namespace in other branches
  1. 8 src/Controller/SitemapController.php \Drupal\sitemap\Controller\SitemapController::getTitle()
  2. 2.0.x src/Controller/SitemapController.php \Drupal\sitemap\Controller\SitemapController::getTitle()

Returns sitemap page's title.

Return value

string Sitemap page title.

1 string reference to 'SitemapController::getTitle'
sitemap.routing.yml in ./sitemap.routing.yml
sitemap.routing.yml

File

src/Controller/SitemapController.php, line 108

Class

SitemapController
Controller routines for update routes.

Namespace

Drupal\sitemap\Controller

Code

public function getTitle() {
  $config = $this->configFactory
    ->get('sitemap.settings');
  return $config
    ->get('page_title');
}