public function MigrateGeolocationFieldHandler::getGeolocationFieldLanguage in Geolocation Field 7
Determines field language.
Parameters
object $entity: Entity being processed.
array $field_info: Field info.
array $arguments: Arguments passed to the field migration handler.
int $delta: Field values delta.
Return value
string Language code.
See also
MigrateFieldHandler::getFieldLanguage()
1 call to MigrateGeolocationFieldHandler::getGeolocationFieldLanguage()
- MigrateGeolocationFieldHandler::prepare in migrate/
destinations/ geolocation.inc
File
- migrate/
destinations/ geolocation.inc, line 112 - Contains geolocation field migration handler.
Class
- MigrateGeolocationFieldHandler
- Geolocation field migration handler class.
Code
public function getGeolocationFieldLanguage($entity, array $field_info, array $arguments, $delta = 0) {
static $language = NULL;
if (is_null($language)) {
$language = $this
->getFieldLanguage($entity, $field_info, $arguments);
}
if (!is_array($language)) {
return $language;
}
else {
if (!empty($language[$delta])) {
return $language[$delta];
}
else {
return LANGUAGE_NONE;
}
}
}