/** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. */ protected function loadFormData() { $data = parent::loadFormData(); if (is_object($data)) { if (is_array($data->params)) { foreach ($data->params as $key => $value) { $data->{$key} = (string) $value; } } } return $data; }