public function getTitle() {
		if ($this->pageState->hasCurrent()) {
			return $this->pageState->getCurrentLeaf()->getTitle();
		}
		
		return $this->view->lookup(GeneralConfig::class)->getPageName();
	}
public function getTitle() {
		if ($this->pageState->hasCurrent()) {
			return $this->pageState->getCurrentLeaf()->getTitle();
		}
		
		return $this->view->lookup(GeneralConfig::class)->getPageName();
	}
public function getTitle ( ) { if ( $ this -> pageState -> hasCurrent ( ) ) { return $ this -> pageState -> getCurrentLeaf ( ) -> getTitle ( ) ; } return $ this -> view -> lookup ( GeneralConfig :: class ) -> getPageName ( ) ; }
Returns the title of the current page or the page name specified in app.ini if there is no
current page.

@return string
Returns the title of the current page or the page name specified in app . ini if there is no current page .