You are here

public static function Location::getGeolocationFieldName in Geolocation Field 8.3

Parameters

string $field_name: The location field's name in the source.

Return value

string The field name of the geolocation field.

4 calls to Location::getGeolocationFieldName()
Location::defineValueProcessPipeline in modules/geolocation_address/src/Plugin/migrate/field/Location.php
Apply any custom processing to the field bundle migrations.
LocationGeolocationFieldInstance::prepareRow in modules/geolocation_address/src/Plugin/migrate/source/LocationGeolocationFieldInstance.php
Adds additional data to the row.
LocationGeolocationFieldStorage::prepareRow in modules/geolocation_address/src/Plugin/migrate/source/LocationGeolocationFieldStorage.php
Adds additional data to the row.
LocationGeolocationFieldWidget::prepareRow in modules/geolocation_address/src/Plugin/migrate/source/LocationGeolocationFieldWidget.php
Adds additional data to the row.

File

modules/geolocation_address/src/Plugin/migrate/field/Location.php, line 36

Class

Location
A migrate field plugin for Drupal 7 Location CCK field values.

Namespace

Drupal\geolocation_address\Plugin\migrate\field

Code

public static function getGeolocationFieldName(string $field_name) {
  return mb_substr($field_name, 0, FieldStorageConfig::NAME_MAX_LENGTH - mb_strlen(static::GEOLOCATION_FIELD_NAME_SUFFIX)) . static::GEOLOCATION_FIELD_NAME_SUFFIX;
}