public function setDataObject($data)
    {
        if (true === is_object($data)) {
            $data = json_encode($data);
        }

        return $this->setData($data);
    }
public function setDataObject($data)
    {
        if (true === is_object($data)) {
            $data = json_encode($data);
        }

        return $this->setData($data);
    }
public function setDataObject ( $ data ) { if ( true === is_object ( $ data ) ) { $ data = json_encode ( $ data ) ; } return $ this -> setData ( $ data ) ; }
Sets the data associated to the layout.
None validity checks are performed at this step.

@param mixed $data

@return \BackBee\Site\Layout
Sets the data associated to the layout . None validity checks are performed at this step .