You are here

public function MigrateAddressPhoneFieldHandler::prepare in Address Field Phone 7

Implements MigrateFieldHandler::prepare().

Parameters

$entity:

array $field_info:

array $instance:

array $values:

Return value

null

Overrides MigrateAddressFieldHandler::prepare

File

./addressfield_phone.migrate.inc, line 50

Class

MigrateAddressPhoneFieldHandler
A Field Handler class that makes address_phone subfield destination for migate api.

Code

public function prepare($entity, array $field_info, array $instance, array $values) {
  $arguments = array();
  if (isset($values['arguments'])) {
    $arguments = array_filter($values['arguments']);
    unset($values['arguments']);
  }
  $language = $this
    ->getFieldLanguage($entity, $field_info, $arguments);
  return isset($return) ? $return : NULL;
}