Artesaos\SEOTools\SEOMeta::getTitle PHP Method

getTitle() public method

Takes the title formatted for display.
public getTitle ( ) : string
return string
    public function getTitle()
    {
        return $this->title ?: $this->getDefaultTitle();
    }

Usage Example

Example #1
0
 public function test_set_title_without_append_default()
 {
     $fullTitle = 'Kamehamehaaaaaaaa';
     $fullHeader = '<title>' . $fullTitle . '</title>';
     $fullHeader .= "<meta name=\"description\" content=\"For those who helped create the Genki Dama\">";
     $this->seoMeta->setTitle($fullTitle, false);
     $this->assertEquals($fullTitle, $this->seoMeta->getTitle());
     $this->setRightAssertion($fullHeader);
 }