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