You are here

public function Search404Controller::getTitle in Search 404 8

Same name and namespace in other branches
  1. 2.x src/Controller/Search404Controller.php \Drupal\search404\Controller\Search404Controller::getTitle()

Set title for the page not found(404) page.

1 string reference to 'Search404Controller::getTitle'
search404.routing.yml in ./search404.routing.yml
search404.routing.yml

File

src/Controller/Search404Controller.php, line 60

Class

Search404Controller
Route controller for search.

Namespace

Drupal\search404\Controller

Code

public function getTitle() {
  $search_404_page_title = \Drupal::config('search404.settings')
    ->get('search404_page_title');
  $title = !empty($search_404_page_title) ? $search_404_page_title : 'Page not found ';
  return $title;
}