protected function finalData($passedData)
    {

        $overwrittenData = $this->overwrittenData;
        $this->overwrittenData = [];

        foreach ($overwrittenData as $key=>$value) {
            $passedData[$key] = $value;
        }

        return $passedData;

    }
protected function finalData($passedData)
    {

        $overwrittenData = $this->overwrittenData;
        $this->overwrittenData = [];

        foreach ($overwrittenData as $key=>$value) {
            $passedData[$key] = $value;
        }

        return $passedData;

    }
protected function finalData ( $ passedData ) { $ overwrittenData = $ this -> overwrittenData ; $ this -> overwrittenData = [ ] ; foreach ( $ overwrittenData as $ key => $ value ) { $ passedData [ $ key ] = $ value ; } return $ passedData ; }
Merges the passed view data with the assigned one

@param array $passedData
@return array
Merges the passed view data with the assigned one