You are here

protected static function SmartDate::prepareTarget in Smart Date 8.2

Same name and namespace in other branches
  1. 3.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  2. 3.0.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  3. 3.1.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  4. 3.2.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  5. 3.3.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::prepareTarget()
  6. 3.4.x src/Feeds/Target/SmartDate.php \Drupal\smart_date\Feeds\Target\SmartDate::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/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');
}