You are here

public function FieldPluginBase::getFieldWidgetType in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetType()
  2. 9 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetType()

Get the field widget type from the source.

Parameters

\Drupal\migrate\Row $row: The field being migrated.

Return value

string The field widget type.

Overrides MigrateFieldInterface::getFieldWidgetType

File

core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php, line 65

Class

FieldPluginBase
The base class for all field plugins.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field

Code

public function getFieldWidgetType(Row $row) {
  return $row
    ->getSourceProperty('widget/type');
}