You are here

private function RangeField::isRangeField in Range 8

Same name in this branch
  1. 8 src/Plugin/migrate/field/d6/RangeField.php \Drupal\range\Plugin\migrate\field\d6\RangeField::isRangeField()
  2. 8 src/Plugin/migrate/field/d7/RangeField.php \Drupal\range\Plugin\migrate\field\d7\RangeField::isRangeField()

Checks whether the given field type is a range field.

This plugin is being called for every single field type existing in the source database.

Parameters

string $type: Field type that is being migrated.

Return value

bool TRUE if the given field type is a range field, FALSE otherwise.

2 calls to RangeField::isRangeField()
RangeField::alterFieldInstanceMigration in src/Plugin/migrate/field/d7/RangeField.php
Apply any custom processing to the field instance migration.
RangeField::alterFieldWidgetMigration in src/Plugin/migrate/field/d7/RangeField.php
Apply any custom processing to the field widget migration.

File

src/Plugin/migrate/field/d7/RangeField.php, line 82

Class

RangeField
MigrateField Plugin for Drupal 7 range fields.

Namespace

Drupal\range\Plugin\migrate\field\d7

Code

private function isRangeField($type) {
  return array_key_exists($type, $this->pluginDefinition['type_map']);
}