protected function MigrateFileFieldHandler::buildFieldArray in Migrate 7.2
Implementation of MigrateFileFieldBaseHandler::buildFieldArray().
Overrides MigrateFileFieldBaseHandler::buildFieldArray
File
- plugins/
destinations/ fields.inc, line 834 - Support for processing entity fields
Class
- MigrateFileFieldHandler
- Handle for file fields.
Code
protected function buildFieldArray($field_array, $arguments, $delta) {
if (isset($arguments['description'])) {
if (is_array($arguments['description'])) {
$field_array['description'] = $arguments['description'][$delta];
}
else {
$field_array['description'] = $arguments['description'];
}
}
else {
$field_array['description'] = '';
}
if (isset($arguments['display'])) {
if (is_array($arguments['display'])) {
$field_array['display'] = $arguments['display'][$delta];
}
else {
$field_array['display'] = $arguments['display'];
}
}
else {
$field_array['display'] = 1;
}
return $field_array;
}