protected static function YouTubeItem::prepareTarget in YouTube Field 8
Prepares a target definition.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
Return value
\Drupal\feeds\FieldTargetDefinition The target definition.
Overrides StringTarget::prepareTarget
File
- src/
Feeds/ Target/ YouTubeItem.php, line 24
Class
- YouTubeItem
- Defines a YouTube field mapper.
Namespace
Drupal\youtube\Feeds\TargetCode
protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
return FieldTargetDefinition::createFromFieldDefinition($field_definition)
->addProperty('input')
->addProperty('video_id');
}