public function FeedsEntityProcessorPropertyEntity::mappingFormCallback in Feeds entity processor 7
Form callback for 'entity' mapping target.
File
- src/
Property/ FeedsEntityProcessorPropertyEntity.php, line 121 - Contains FeedsEntityProcessorPropertyEntity.
Class
- FeedsEntityProcessorPropertyEntity
- Handler for entity property.
Code
public function mappingFormCallback(array $mapping, $target, array $form, array $form_state) {
return array(
'entity_type' => array(
'#type' => 'select',
'#title' => t('Entity type'),
'#options' => array(
'' => t('- Select -'),
) + $this
->getEntityTypeOptions(),
'#default_value' => $this
->getMappingEntityType($mapping),
'#required' => TRUE,
),
);
}