public function Search404Controller::getTitle in Search 404 8
Same name and namespace in other branches
- 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'
File
- src/
Controller/ Search404Controller.php, line 60
Class
- Search404Controller
- Route controller for search.
Namespace
Drupal\search404\ControllerCode
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;
}