public function FeedsEntityProcessorPropertyDefault::getMappingTarget in Feeds entity processor 7
Implements FeedsEntityProcessorPropertyInterface::getMappingTarget().
Overrides FeedsEntityProcessorPropertyInterface::getMappingTarget
2 calls to FeedsEntityProcessorPropertyDefault::getMappingTarget()
- FeedsEntityProcessorPropertyDate::getMappingTarget in src/
Property/ FeedsEntityProcessorPropertyDate.php - Implements FeedsEntityProcessorPropertyInterface::getMappingTarget().
- FeedsEntityProcessorPropertyEntity::getMappingTarget in src/
Property/ FeedsEntityProcessorPropertyEntity.php - Implements FeedsEntityProcessorPropertyInterface::getMappingTarget().
2 methods override FeedsEntityProcessorPropertyDefault::getMappingTarget()
- FeedsEntityProcessorPropertyDate::getMappingTarget in src/
Property/ FeedsEntityProcessorPropertyDate.php - Implements FeedsEntityProcessorPropertyInterface::getMappingTarget().
- FeedsEntityProcessorPropertyEntity::getMappingTarget in src/
Property/ FeedsEntityProcessorPropertyEntity.php - Implements FeedsEntityProcessorPropertyInterface::getMappingTarget().
File
- src/
Property/ FeedsEntityProcessorPropertyDefault.php, line 152 - Contains FeedsEntityProcessorPropertyDefault.
Class
- FeedsEntityProcessorPropertyDefault
- Default handler for entity properties.
Code
public function getMappingTarget() {
$property_info = $this
->getPropertyInfo();
$description = isset($property_info['description']) ? check_plain($property_info['description']) : '';
// Add data type info, if available.
$data_type = $this
->getDataType();
if ($data_type) {
if (!empty($description)) {
$description .= "\n";
}
$description .= t('Data type: @type', array(
'@type' => $data_type,
));
}
return array(
'name' => check_plain($property_info['label']),
'description' => $description,
);
}