original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Resolved page title by configured pattern.
  
  @param string         $patternName
  @param Siteroot       $siteroot
  @param ElementVersion $elementVersion
  @param string         $language
  
  @return string
docstring_tokens: Resolved page title by configured pattern .