/** * {@inheritDoc} * * Canonize compound data */ public function getData($flags = FormInterface::VALUES_NORMALIZED) { $data = parent::getData($flags); $result = array(); foreach ($data as $key => $value) { $tmp = Pi::api('form', 'user')->parseCompoundFieldName($key); if ($tmp) { $result[$tmp[0]][0][$tmp[1]] = $value; } else { $result[$key] = $value; } } return $result; }