protected function FieldUtilsTrait::getDestinationFieldsOptions in Scheduled Updates 8
1 call to FieldUtilsTrait::getDestinationFieldsOptions()
- ScheduledUpdateTypeForm::createFieldMapElements in src/
Form/ ScheduledUpdateTypeForm.php - Create form elements to update field map.
File
- src/
FieldUtilsTrait.php, line 20 - Contains \Drupal\scheduled_updates\FieldUtilsTrait.
Class
Namespace
Drupal\scheduled_updatesCode
protected function getDestinationFieldsOptions($entity_type_id, $source_field) {
$destination_fields = $this
->getDestinationFields($entity_type_id, $source_field);
$options = [];
foreach ($destination_fields as $field_id => $destination_field) {
$options[$field_id] = $destination_field
->getName();
}
return $options;
}