public function getTitle()
    {
        $title = ObjectUtility::valueForKeyPathOfObject('meta.title', $this);
        if (!$title) {
            $title = $this->getIdentifier();
            $slashPosition = strpos($title, DIRECTORY_SEPARATOR);
            if ($slashPosition !== false) {
                $title = substr($title, $slashPosition + 1);
            }
            $title = str_replace(self::URI_WHITESPACE_REPLACE, ' ', $title);
        }

        return $title;
    }
public function getTitle()
    {
        $title = ObjectUtility::valueForKeyPathOfObject('meta.title', $this);
        if (!$title) {
            $title = $this->getIdentifier();
            $slashPosition = strpos($title, DIRECTORY_SEPARATOR);
            if ($slashPosition !== false) {
                $title = substr($title, $slashPosition + 1);
            }
            $title = str_replace(self::URI_WHITESPACE_REPLACE, ' ', $title);
        }

        return $title;
    }
public function getTitle ( ) { $ title = ObjectUtility :: valueForKeyPathOfObject ( 'meta.title' , $ this ) ; if ( ! $ title ) { $ title = $ this -> getIdentifier ( ) ; $ slashPosition = strpos ( $ title , DIRECTORY_SEPARATOR ) ; if ( $ slashPosition !== false ) { $ title = substr ( $ title , $ slashPosition + 1 ) ; } $ title = str_replace ( self :: URI_WHITESPACE_REPLACE , ' ' , $ title ) ; } return $ title ; }
Returns the pages title

@return string
Returns the pages title