DoubleField.php in Double Field 8.3
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\double_field\Feeds\TargetFile
src/Feeds/Target/DoubleField.phpView source
<?php
namespace Drupal\double_field\Feeds\Target;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\feeds\FieldTargetDefinition;
use Drupal\feeds\Plugin\Type\Target\FieldTargetBase;
/**
* Defines a field mapper for Double Field.
*
* @FeedsTarget(
* id = "double_field",
* field_types = {"double_field"}
* )
*/
class DoubleField extends FieldTargetBase {
/**
* {@inheritdoc}
*/
protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
return FieldTargetDefinition::createFromFieldDefinition($field_definition)
->addProperty('first')
->addProperty('second');
}
}
Classes
Name | Description |
---|---|
DoubleField | Defines a field mapper for Double Field. |