Skip to content

Commit 859bfdd

Browse files
committed
Return a datavalue
1 parent d6367b7 commit 859bfdd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/AddressFinderField.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,26 @@ public function saveInto(DataObjectInterface $record)
369369
}
370370
}
371371

372+
/**
373+
* @return array
374+
*/
375+
public function dataValue()
376+
{
377+
$data = [
378+
'Address' => $this->addressField->Value(),
379+
];
380+
381+
if ($this->getShowManualFields()) {
382+
foreach ($this->getManualFields() as $field) {
383+
$fieldName = $this->getNestedFieldName($field);
384+
$data[$fieldName] = $field->Value();
385+
}
386+
}
387+
388+
return $data;
389+
}
390+
391+
372392
/**
373393
* Returns the actual name of a child field without the prefix of this
374394
* field.

0 commit comments

Comments
 (0)