src/Theme.php
protected function appendOrPrepend($region, $value, $type = 'append')
    {
        // If region not found, create a new region.
        if (isset($this->regions[$region])) {
            switch ($type) {
                case 'prepend' :
                    $this->regions[$region] = $value.$this->regions[$region];
                    break;
                case 'append' :
                    $this->regions[$region] .= $value;
                    break;
            }
        } else {
            $this->set($region, $value);
        }

        return $this;
    }
protected function appendOrPrepend($region, $value, $type = 'append')
    {
        // If region not found, create a new region.
        if (isset($this->regions[$region])) {
            switch ($type) {
                case 'prepend' :
                    $this->regions[$region] = $value.$this->regions[$region];
                    break;
                case 'append' :
                    $this->regions[$region] .= $value;
                    break;
            }
        } else {
            $this->set($region, $value);
        }

        return $this;
    }
protected function appendOrPrepend ( $ region , $ value , $ type = 'append' ) { // If region not found, create a new region. if ( isset ( $ this -> regions [ $ region ] ) ) { switch ( $ type ) { case 'prepend' : $ this -> regions [ $ region ] = $ value . $ this -> regions [ $ region ] ; break ; case 'append' : $ this -> regions [ $ region ] .= $ value ; break ; } } else { $ this -> set ( $ region , $ value ) ; } return $ this ; }
Append or prepend existing region.

@param  string $region
@param  string $value
@param  string $type
@return Theme
Append or prepend existing region .