You are here

protected static function SmartDate::prepareTarget in Smart Date 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  2. 3.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  3. 3.0.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  4. 3.1.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  5. 3.2.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  6. 3.3.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()

File

src/Feeds/Target/SmartDate.php, line 24

Class

SmartDate
Defines a smartdate field mapper.

Namespace

Drupal\smart_date\Feeds\Target

Code

protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
  return FieldTargetDefinition::createFromFieldDefinition($field_definition)
    ->addProperty('value')
    ->addProperty('end_value');
}