public function replace($patternName, Siteroot $siteroot, ElementVersion $elementVersion, $language)
    {
        if (!isset($this->patterns[$patternName])) {
            $pattern = '%p';
        } else {
            $pattern = $this->patterns[$patternName];
        }

        return $this->replacePattern($pattern, $siteroot, $elementVersion, $language);
    }
public function replace($patternName, Siteroot $siteroot, ElementVersion $elementVersion, $language)
    {
        if (!isset($this->patterns[$patternName])) {
            $pattern = '%p';
        } else {
            $pattern = $this->patterns[$patternName];
        }

        return $this->replacePattern($pattern, $siteroot, $elementVersion, $language);
    }
public function replace ( $ patternName , Siteroot $ siteroot , ElementVersion $ elementVersion , $ language ) { if ( ! isset ( $ this -> patterns [ $ patternName ] ) ) { $ pattern = '%p' ; } else { $ pattern = $ this -> patterns [ $ patternName ] ; } return $ this -> replacePattern ( $ pattern , $ siteroot , $ elementVersion , $ language ) ; }
Resolved page title by configured pattern.

@param string         $patternName
@param Siteroot       $siteroot
@param ElementVersion $elementVersion
@param string         $language

@return string
Resolved page title by configured pattern .