You are here

public function MigratePhoneFieldHandler::fields in Phone 7.2

Implementation of MigrateFieldHandler::fields().

Parameters

string $type: The field type.

string $parent_field: Name of the parent field.

Migration $migration: The migration context for the parent field. We can look at the mappings and determine which subfields are relevant.

Return value

array The array of subfields we support.

File

./phone.migrate.inc, line 91
Support for migrate module.

Class

MigratePhoneFieldHandler
Migration class for phone fields.

Code

public function fields($type, $parent_field, $migration = NULL) {
  $fields = array(
    'countrycode' => t('Subfield: The phone countrycode attribute'),
    'numbertype' => t('Subfield: The phone number type'),
    'extension' => t('Subfield: The phone extension'),
    'language' => t('Subfield: Language for the field'),
  );
  return $fields;
}