protected static function MobileNumber::prepareTarget in Mobile Number 8
Same name and namespace in other branches
- 2.0.x src/Feeds/Target/MobileNumber.php \Drupal\mobile_number\Feeds\Target\MobileNumber::prepareTarget()
Prepares a target definition.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
Return value
\Drupal\feeds\FieldTargetDefinition The target definition.
Overrides FieldTargetBase::prepareTarget
File
- src/
Feeds/ Target/ MobileNumber.php, line 24
Class
- MobileNumber
- Defines a mobile number field mapper.
Namespace
Drupal\mobile_number\Feeds\TargetCode
protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
return FieldTargetDefinition::createFromFieldDefinition($field_definition)
->addProperty('value')
->addProperty('local_number')
->addProperty('country')
->addProperty('tfa')
->addProperty('verified');
}