Artesaos\SEOTools\SEOMeta::getDefaultTitle PHP Method

getDefaultTitle() public method

Takes the default title.
public getDefaultTitle ( ) : string
return string
    public function getDefaultTitle()
    {
        if (empty($this->title_default)) {
            return $this->config->get('defaults.title', null);
        }
        return $this->title_default;
    }

Usage Example

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