src/Entities/Title.php
private function renderTitleFirst($separator)
    {
        $output   = [];
        $output[] = $this->getTitleOnly();

        if ($this->hasSiteName()) {
            $output[] = $separator;
            $output[] = $this->getSiteName();
        }

        return implode('', $output);
    }
private function renderTitleFirst($separator)
    {
        $output   = [];
        $output[] = $this->getTitleOnly();

        if ($this->hasSiteName()) {
            $output[] = $separator;
            $output[] = $this->getSiteName();
        }

        return implode('', $output);
    }
private function renderTitleFirst ( $ separator ) { $ output = [ ] ; $ output [ ] = $ this -> getTitleOnly ( ) ; if ( $ this -> hasSiteName ( ) ) { $ output [ ] = $ separator ; $ output [ ] = $ this -> getSiteName ( ) ; } return implode ( '' , $ output ) ; }
Render title first.

@param  string  $separator

@return string
Render title first .