You are here

public function FeedsEntityProcessorPropertyEntity::mappingSummaryCallback in Feeds entity processor 7

Summary callback for 'entity' mapping target.

File

src/Property/FeedsEntityProcessorPropertyEntity.php, line 138
Contains FeedsEntityProcessorPropertyEntity.

Class

FeedsEntityProcessorPropertyEntity
Handler for entity property.

Code

public function mappingSummaryCallback(array $mapping, $target, array $form, array $form_state) {
  $entity_type = $this
    ->getMappingEntityType($mapping);
  if (!$entity_type) {
    return t('Entity type: %entity_type', array(
      '%entity_type' => t('None'),
    ));
  }
  else {
    $entity_types = $this
      ->getEntityTypeOptions();
    return t('Entity type: %entity_type', array(
      '%entity_type' => $entity_types[$entity_type],
    ));
  }
}