You are here

protected function FieldTargetBase::prepareValue in Feeds 8.3

Prepares a single value.

Parameters

int $delta: The field delta.

array $values: The values.

2 calls to FieldTargetBase::prepareValue()
FieldTargetBase::prepareValues in src/Plugin/Type/Target/FieldTargetBase.php
Prepares the the values that will be mapped to an entity.
Text::prepareValue in src/Feeds/Target/Text.php
Prepares a single value.
12 methods override FieldTargetBase::prepareValue()
Boolean::prepareValue in src/Feeds/Target/Boolean.php
Prepares a single value.
ConfigEntityReference::prepareValue in src/Feeds/Target/ConfigEntityReference.php
Prepares a single value.
DateTime::prepareValue in src/Feeds/Target/DateTime.php
Prepares a single value.
Email::prepareValue in src/Feeds/Target/Email.php
Prepares a single value.
EntityReference::prepareValue in src/Feeds/Target/EntityReference.php
Prepares a single value.

... See full list

File

src/Plugin/Type/Target/FieldTargetBase.php, line 179

Class

FieldTargetBase
Helper class for field mappers.

Namespace

Drupal\feeds\Plugin\Type\Target

Code

protected function prepareValue($delta, array &$values) {
  foreach ($values as $column => $value) {
    $values[$column] = (string) $value;
  }
}